cancel
Showing results for 
Search instead for 
Did you mean: 

How to make CubeMX Makefile to use Clang instead of GCC?

HPere.1
Associate II

I have been using CubeMX to generate HAL libraries and made use of simple makefile option. I realized that makefile is based on GCC and what should I do to make use of clang instead of GCC and compile the project?

1 REPLY 1
TDK
Guru

CubeMX doesn't have this option. It's something you'd have to change yourself within the project. Add the path to the Clang binaries so the compiler sees them before it sees the GCC ones. Might have to tweak a few more things since some syntax is compiler specific.

If you feel a post has answered your question, please click "Accept as Solution".