[Scons-users] PlatformIO: Compilation bug on Windows with installed MSVC

Dirk Bächle tshortik at gmx.de
Wed Dec 10 19:03:49 EST 2014


Hi Ivan,

On 10.12.2014 23:07, Ivan Kravets wrote:
> Dear developers,
>
> I have an issue with PlatformIO project: https://github.com/ivankravets/platformio/issues/18
>
> Can anyone me explain how to avoid this strange "code line"?
> tools=["default", "gcc", "g++", "ar", "gnulink", "platformio"]
telling SCons "tools=default" means that it will go off and try to find 
and initialize any C/C++/LaTeX/SWIG/... compiler in the current system. 
The first match wins and gets picked. The order in which different 
tools/compilers are probed is currently fixed per platform 
(Win/linux/darwin/sunos)...and under Windows it will always select the 
VisualStudio compiler first, and initialize the flag prefixes and 
suffixes (like for include paths) accordingly.
If you know exactly which compiler you need, just leave out the 
"default"...and set the PATH variable for your build environment, such 
that the executable can be found when the Tool checks that it really exists.

Regards,

Dirk



More information about the Scons-users mailing list