Windows path with ccache

已完成

Dear team,

 

I am using the CLion tool to build for an embedded platform under windows system.

I have an issue because the ccache command exists, showing a “not found” compiler in the PATH: 

ccache: error: Could not find compiler "C:\msys64\mingw64\bin\arm-none-eabi-gcc.exe" in PATH

The compiler is in the PATH but the issue comes from the fact that we have backslashes.

I have tried using the following presets:

 {
     "name": "stm32f446-release",
     "displayName": "Release Config",
     "description": "Release build using Ninja generator for STM32F446",
     "generator": "Ninja",
     "binaryDir": "xxx",
     "toolchainFile": “xxx”,
     "cacheVariables": {
       "CMAKE_BUILD_TYPE": "Release",
       "CMAKE_C_COMPILER_LAUNCHER": "ccache",
       "CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
       "CMAKE_TOOLCHAIN_FILE": "xxx",
       "BUILD_VERSION": "dev",
       "BUILD_ID": "$env{USER}",
       "BUILD_TESTING": false,
       "STM32_CHIP": "STM32F446",
       "CONAN_WORKSPACE": true
     },
     "environment": {
       "CC": "arm-none-eabi-gcc",
       "CXX": "arm-none-eabi-g++"
     }
   },

 

or by configuring a manual toolchain in the settings (so mingw found in msys2 directory, specifying the complete path to the compiler.)

 

Do you have any idea on how to solve that ?

Thanks!

0

Just for the record: the same discussion in the tracker - CPP-40738.

0

请先登录再写评论。