[Scons-users] PlatformIO: Compilation bug on Windows with installed MSVC
me at ikravets.com
Sat Dec 13 14:17:40 EST 2014
> On Dec 11, 2014, at 02:03, Dirk Bächle <tshortik at gmx.de> wrote:
> 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.
Thanks a lot for quick answer!
I set -> tools=["platformio"] and received -> AttributeError: 'SConsEnvironment' object has no attribute 'Library'
As I understand, I can't avoid "default" tool, because it contains all logic with "Program", "Library" and etc.
P.S: Is it good solution in my situation? tools=["default", "gcc", "g++", "ar", "gnulink", "platformio"]
With best regards, Ivan Kravets
- "Creativity comes from talent and never from knowledge" (c)
More information about the Scons-users