[Scons-users] Setting non-default compilers

Damien damien at khubla.com
Fri Oct 24 10:14:55 EDT 2014


For C++ you need to set env['CXX'] as well.

Damien

On 2014-10-24 8:12 AM, Jonathan%20H.H.%20Bloedow wrote:
> First post... I can't figure out why I can't find the solution to this 
> in documentation, etc., but I can't.
>
> We're using scons successfully on windows. I want to use on linux. But 
> we use (and require) the mpicxx compiler. But no matter what I do to 
> tell scons to use mpicxx, it uses g++!!!
>
> I added code to log out the value of env['CC'] all the way along -- as 
> you can see below, it says "mpicxx", but the compiler line still uses, 
> yes, g++. Arg... Please tell me what I'm doing wrong.
>
> [jbloedow at ivlabsdvapp61 trunk]$ scons
> scons: Reading SConscript files ...
> Rel=True Dbg=False
> scons version: 2.3.0
> python version: 2 7 5 'final' 0
> BUILD_DIR=#build/${PYSYSPLATFORM}/Release/ pi=x64
> CC is: mpicxx
> CC is: mpicxx
> CC is: mpicxx
> (1) CC is: mpicxx
> Checking whether the C++ compiler works(cached) yes
> (2) CC is: mpicxx
> DLL=False
> Install=
> Current working directory: /home2/jbloedow/trunk/utils
> sh: ..preutils.bat: command not found
> (6) CC is: mpicxx
> (7) CC is: mpicxx
> (5) CC is: mpicxx
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: building associated VariantDir targets: build/x64/Release
> g++ -o build/x64/Release/Eradication/BaseChannelReport.o -c 
> -Ibuild/x64/Release/Eradication/C:/boost/boost_1_51_0 
> -IEradication/C:/boost/boost_1_51_0 
> -IDependencies/ComputeClusterPack/Include -Icajun/include -Ijsonspirit 
> -IEradication -Icampaign -Iinterventions -Iutils -Ilibgeneric_static 
> -Irapidjson/include -Irapidjson/modp -Iunittest/UnitTest++/src 
> Eradication/BaseChannelReport.cpp
>
>
> Thanks,
> Jonathan
>
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20141024/168216f2/attachment.html>


More information about the Scons-users mailing list