[Scons-dev] This morning's WTF moment
Kenny, Jason L
jason.l.kenny at intel.com
Mon Sep 8 11:59:25 EDT 2014
I know that I am late in the talk here and some of this may have been answered already..
Windows has a sub-systems that run on the kernel. One of them is win32. ( there used to be a posix one FYI, and with win 8 there is a new winrt layer). So while it looks like a joke to on windows 64-bit to see win32 as a platform it is technically correct.. This is why I pushed a while ago to get (TARGET|HOST)_(OS|ARCH) added to SCons. I know that when this was proposed there had been different takes on what to do. .. ie do we have one object deal with this, or do we make different variable to deal with this. There are plus and minus to but cased for different use cases. This is why I added to Part the SystemPlatform object. To main goal is to enhance the target and host idea from the simple Scons PLATFORM concept. I believe this has been a great addition. And should be added in some way to SCon, it is a basic building block to make cross platform builds work better and to help make it easy to define more complex toolchain setups in an easy way.
At anyrate SCons current imple of the tool should be fixed to correct the warning issue. The way I have some people fix this with Parts is to have them add a scons-site directory with an empty tools/defaults.py.
Jason
-----Original Message-----
From: Scons-dev [mailto:scons-dev-bounces at scons.org] On Behalf Of Russel Winder
Sent: Saturday, September 6, 2014 4:43 AM
To: SCons_Developers
Subject: [Scons-dev] This morning's WTF moment
OK so I am abandoning all my scruples and trying to get SCons running on my wife's Windows 7 machine so as to run some tests on Linux, OSX *and* Windows.
I have now discovered that on a 64-bit laptop running Windows 7:
Environment()['PLATFORM']
return win32. One assumes there is some existentialist humour present in this result?
Also at every turn I am told:
scons: warning: No version of Visual Studio compiler found – C/C++ compilers most likely not set correctly File … engine\SCons\Script\Main.py", line 602, in _scons_internal_warning
Yes I know this, I haven't installed any C or C++ compilers on this machine, I don't need to be told at every turn. However not only does SCons insists on telling me this, it tells me twice, at Reading SConscript files phase *AND* Building targets phase.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
More information about the Scons-dev
mailing list