I'm beginning to get the hang of scons.

One question I have is why are the same flags set over and over in the
local SConscripts?

In working on the darwin port I found -std=c++11 eliminated some warnings
(or something, of course now I forget), and since c++0x is obsolete anyway
I decided to replace it everywhere.  (Any reason not to do this?)

Then it dawned on me that this can be set globally.   So I added

  env['CXXFLAGS'] = ['-std=c++11']

to the main SConstruct file.  And it seems to work.

Is there some reason this is not done?  I can't really see the advantage of
setting this explicitly in every scons file.  Ditto for lots of other flags.

thanks,

gregg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160603/83da5b42/attachment.html>

Reply via email to