-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Description
Previously mentioned here: ARMmbed/mbed-tools#153
The following lines force CMake to use the toolchain from PATH.
mbed-os/tools/cmake/toolchains/GCC_ARM.cmake
Lines 4 to 7 in c734138
set(CMAKE_ASM_COMPILER "arm-none-eabi-gcc") | |
set(CMAKE_C_COMPILER "arm-none-eabi-gcc") | |
set(CMAKE_CXX_COMPILER "arm-none-eabi-g++") | |
set(GCC_ELF2BIN "arm-none-eabi-objcopy") |
This should instead be provided by the user (IDEs like VSCode and CLion do this). Otherwise it leads to configuration issues when using multiple toolchains in the same project. I have such a use case, where I build another target to run my GUI library on the host.
Is there a case against removing these lines? GCC_ELF2BIN
could then be derived from the provided compiler location.