I’m having trouble getting the unit tests to build on my Mac.
I suspect this might be related to the fact that it’s using the clang/llvm compiler (at /usr/bin/g++
) instead of the actual gcc compiler (at /usr/local/bin/g++-10
).
Is there a way to tell the mbed
tool to use a specific compiler for unit tests? Should I set up a custom toolchain in mbed_settings.py (as far as I can tell it ignores the toolchain setting when running unit tests). Or will I have to override the system default g++
(e.g. by symlinking g++=10
to g++
in /usr/local/bin
)?