Browse Source

wscript: Remove the forced -O3 compiler flag

-O3 is problematic for two reasons. First, it prevents user
to specify the optimization level (through CFLAGS/CXXFLAGS)
because wscript appends to the flags. Second, some versions
of gcc are known to produce broken code when -O3 is enabled.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4094 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.7
nedko 14 years ago
parent
commit
17ac897ade
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      wscript

+ 2
- 2
wscript View File

@@ -108,8 +108,8 @@ def configure(conf):
# conf.check_tool('compiler_cxx') # conf.check_tool('compiler_cxx')
# conf.check_tool('compiler_cc') # conf.check_tool('compiler_cc')
conf.env.append_unique('CXXFLAGS', '-O3 -Wall')
conf.env.append_unique('CCFLAGS', '-O3 -Wall')
conf.env.append_unique('CXXFLAGS', '-Wall')
conf.env.append_unique('CCFLAGS', '-Wall')


conf.sub_config('common') conf.sub_config('common')
if conf.env['IS_LINUX']: if conf.env['IS_LINUX']:


Loading…
Cancel
Save