summaryrefslogtreecommitdiffstats
path: root/scons/gallium.py
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-09-29 14:24:52 +0100
committerJosé Fonseca <[email protected]>2010-09-29 14:24:52 +0100
commite3a3a5378e4a1b45f30fcb26730d6c73e623cfac (patch)
tree70b879c69e35d89fe0216509d82fd15f603bed72 /scons/gallium.py
parent67450f0644f61fc17ab1315124dfe50537d36e9e (diff)
scons: New build= option, with support for checked builds.
Where checked build is compiler optimizations plus debugging checks -- ideal for testing CPU bound loads and running test automation loads.
Diffstat (limited to 'scons/gallium.py')
-rw-r--r--scons/gallium.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 97b47216636..b065b7bc49f 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -130,7 +130,6 @@ def generate(env):
env['msvc'] = env['CC'] == 'cl'
# shortcuts
- debug = env['debug']
machine = env['machine']
platform = env['platform']
x86 = env['machine'] == 'x86'
@@ -412,7 +411,7 @@ def generate(env):
if env['platform'] == 'windows' and msvc:
# Choose the appropriate MSVC CRT
# http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
- if env['debug']:
+ if env['build'] in ('debug', 'checked'):
env.Append(CCFLAGS = ['/MTd'])
env.Append(SHCCFLAGS = ['/LDd'])
else:
@@ -444,7 +443,7 @@ def generate(env):
else:
env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group'
if msvc:
- if not env['debug']:
+ if env['build'] != 'debug':
# enable Link-time Code Generation
linkflags += ['/LTCG']
env.Append(ARFLAGS = ['/LTCG'])