I’m working on an open-source COVID-19 related project and we’re using PlatformIO.
Our unit tests and various style checks run in “native”. However, this means that different contributors are using different compilers (e.g. those on MacOS end up using clang, those on Linux probably gcc), and these compilers may be yet different from the compiler native to our CI environment. This leads to frustrating experiences where the code compiles or passes style checks for one person, but then fails for another person or on CI.
Is it possible to specify for the “native” environment to use a particular fixed toolchain, e.g. gcc of a certain version? I’m fine even creating a custom “platform” (eg by forking the “native” platform definition), but I don’t know what I should change in there to make it use, say, a particular version of GCC.