I’d like to use clang instead of gcc to compile a project made with PlatformIO (the target is an STM32F4Discovery board). Is that possible? I was unable to find a clang package in the PlatformIO registry, so I don’t think this would work out of the box on a new install – but assume I’m willing to install it on my system directly. Is there an option I could set in platformio.ini
or somewhere else to make it compile with clang?
For those wondering why I would want to do that, there are many reasons discussed here.