append -fomit-frame-pointer and -march=native to CXXFLAGS in release profile.
This commit is contained in:
1 parent
87af1022ec
commit
f127c0da72
1 file changed
+4
@@ -282,6 +282,10 @@ def configure(conf):
|
||||
env.append_value('CXXDEFINES', 'NS3_ASSERT_ENABLE')
|
||||
env.append_value('CXXDEFINES', 'NS3_LOG_ENABLE')
|
||||
|
||||
if Options.options.build_profile == 'release':
|
||||
env.append_value('CXXFLAGS', '-fomit-frame-pointer')
|
||||
env.append_value('CXXFLAGS', '-march=native')
|
||||
|
||||
env['PLATFORM'] = sys.platform
|
||||
|
||||
if conf.env['CXX_NAME'] in ['gcc', 'icc']:
|
||||
|
||||
Reference in new issue
Block a user