[Scons-users] scons and clang++
    Florian Lindner 
    mailinglists at xgm.de
       
    Fri Jul 18 07:45:09 EDT 2014
    
    
  
Dirk Bächle wrote:
> On 18.07.2014 11:23, Florian Lindner wrote:
>> Dirk Bächle wrote:
>>
>>> [...]
>> Isn't the point of calling env = conf.Finish() not to allow you to set
>> all variables in env and test not before calling Finish()?
> And what if your configure tests depend on an environment having been
> setup properly? ;)
So you recommend to import the entire os.environ always?
> The basic idea here is to setup your Environment first (PATH + detected
> Tools), and then with Configure() to further refine your build
> description by adding include and lib paths, based on what
> libraries/packages you find (based on the Environment, as defined in
> step 1).
Right now I have blocks like:
if env["feature"]:
  env.AppendUnique(LIBPATH = [someAdditionalLibs])
  if not conf.CheckHeader('header.h'): 
     failOrWarn()
see http://pastebin.com/GrJ2SFTu
Is that a problem like that?
Regards,
Florian
> 
>> Right now it works without importing the entire environment. The only
>> import I do is about $TERM. Since I do that only for compiler==clang++ it
>> can't be done in constructor.
> Okay, if it works...don't touch it. ;)
> 
> Dirk
> 
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
    
    
More information about the Scons-users
mailing list