diff options
author | marha <marha@users.sourceforge.net> | 2011-02-10 07:12:27 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-02-10 07:12:27 +0000 |
commit | 183968dd18dc91f73325980bd511ed6bdb38b432 (patch) | |
tree | 44b101aea37e5ef679aca953399c20502dabdd01 /mesalib/scons | |
parent | 51a59b7f7f9b134791d3b09673063e4c45ea9eee (diff) | |
download | vcxsrv-183968dd18dc91f73325980bd511ed6bdb38b432.tar.gz vcxsrv-183968dd18dc91f73325980bd511ed6bdb38b432.tar.bz2 vcxsrv-183968dd18dc91f73325980bd511ed6bdb38b432.zip |
libX11 mesa git update 10 Feb 2011
Diffstat (limited to 'mesalib/scons')
-rw-r--r-- | mesalib/scons/gallium.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mesalib/scons/gallium.py b/mesalib/scons/gallium.py index df060f01a..c4144273a 100644 --- a/mesalib/scons/gallium.py +++ b/mesalib/scons/gallium.py @@ -402,13 +402,19 @@ def generate(env): '/Od', # disable optimizations '/Oi', # enable intrinsic functions '/Oy-', # disable frame pointer omission - '/GL-', # disable whole program optimization ] else: ccflags += [ '/O2', # optimize for speed + ] + if env['build'] == 'release': + ccflags += [ '/GL', # enable whole program optimization ] + else: + ccflags += [ + '/GL-', # disable whole program optimization + ] ccflags += [ '/fp:fast', # fast floating point '/W3', # warning level @@ -498,7 +504,7 @@ def generate(env): else: env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group' if msvc: - if env['build'] != 'debug': + if env['build'] == 'release': # enable Link-time Code Generation linkflags += ['/LTCG'] env.Append(ARFLAGS = ['/LTCG']) |