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
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.