append -fomit-frame-pointer and -march=native to CXXFLAGS in release profile.
authorAndrey Mazo <mazo@iitp.ru>
Fri Oct 23 17:31:36 2009 +0400 (3 months ago)
changeset 54998878efe25b6c
parent 5498 15524c57a627
child 5500 6db6a279dfff
append -fomit-frame-pointer and -march=native to CXXFLAGS in release profile.
wscript
     1.1 --- a/wscript	Fri Oct 23 17:23:45 2009 +0400
     1.2 +++ b/wscript	Fri Oct 23 17:31:36 2009 +0400
     1.3 @@ -282,6 +282,10 @@
     1.4          env.append_value('CXXDEFINES', 'NS3_ASSERT_ENABLE')
     1.5          env.append_value('CXXDEFINES', 'NS3_LOG_ENABLE')
     1.6  
     1.7 +    if Options.options.build_profile == 'release': 
     1.8 +        env.append_value('CXXFLAGS', '-fomit-frame-pointer') 
     1.9 +        env.append_value('CXXFLAGS', '-march=native') 
    1.10 +
    1.11      env['PLATFORM'] = sys.platform
    1.12  
    1.13      if conf.env['CXX_NAME'] in ['gcc', 'icc']: