[Scons-users] Setting non-default compilers

William Blevins wblevins001 at gmail.com
Fri Oct 24 10:22:02 EDT 2014


The SConstruct/SConscript would more useful than the output.  My only guess
is that you are using a diff env when building than what you are printing.
Do you use a cloned or substitute env anywhere?
On Oct 24, 2014 10:13 AM, "Jonathan%20H.H.%20Bloedow" <
jonathan.bloedow at comcast.net> 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/d662eba5/attachment.html>


More information about the Scons-users mailing list