[Scons-users] Setting non-default compilers

Jonathan%20H.H.%20Bloedow jonathan.bloedow at comcast.net
Fri Oct 24 10:12:55 EDT 2014


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 


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


More information about the Scons-users mailing list