[Scons-users] compiler detection
Kraus Philipp
philipp.kraus at flashpixx.de
Tue Oct 30 06:36:33 EDT 2012
Am 30.10.2012 um 06:08 schrieb Evan Driscoll:
> On 10/29/2012 9:16 PM, Evan Driscoll wrote:
>> SCons will always behave the same regardless of how you start it. If
>> 'scons' runs the native SCons, it will always use cmd.exe by default
>> regardless of whether it is being started under Cygwin or cmd. If
>> 'scons' runs Cygwin SCons, then it will always use Cygwin's sh.exe by
>> default regardless of whether it is being started under Cygwin or cmd.
>> (But see below.)
>
> Actually my rant there, while *mostly* right, has some inaccuracies.
> What matters is not where SCons per se came from but rather what Python
> is used to run it. So if you install SCons for native Python but then
> run it with Cygwin Python, you'll get Cygwin behavior (SHELL is sh and
> CC is gcc); if you install SCons for Cygwin Python but then run it with
> native Python, you'll get native behavior (SHELL is cmd.exe and CC is
> cl). There is no MinGW/MSYS Python (at least as far as I know), so
> that's not an option.
Yes there exist not "msys-python", you should use the native python package.
I use Scons Windows installer with the native python.
> Also, it's easier to run native SCons from a Cygwin shell than I
> thought: you just have to explicitly say 'scons.bat' instead of just
> 'scons'.
You're right, but there is a little problem on Cygwin. Cygwin uses always its
cygwin.dll, so each programm / library, that is compiled under Cygwin is linked
to this DLL. I can disable with -mo-cygwin this linking option, but some library like
Atlas & LAPack does not work anymore. On the dll exists also a licence, that are
added to the compiled programs, so in some cases Cygwin can make some problems.
Hence I would like to add also a naitive toolset for building my project. I need also the
autotools & make, so I must use MSYS / MinGW.
I run my scons build script on OSX 10.5 - 10.8, different Linux (Gentoo, Mint, Ubuntu) and Windows (Cygwin & MSYS),
so can I send the environment detection to this list, I think someone else can use this
Phil
More information about the Scons-users
mailing list