summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2018-10-26 10:23:39 -0600
committerBrian Paul <brianp@vmware.com>2018-10-26 12:09:00 -0600
commitd6be0b5556ceb40a24b0a89ff86e909514d60a52 (patch)
treeb2e10f37f4caaab6e4416ace74928914ce50f7f5 /scons
parent5bcf479524b96554cab7d2429dacf650b4054638 (diff)
scons/svga: remove opt from the list of valid build types
This reverts commit a5fd54f8bf6713312fa5efd7ef5cd125557a0ffe. The whole point was to add a way to pass -DVMX86_STATS to the build, but we can do that with a command line argument when we invoke scons. Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index aa7201a9715..963834a5fbc 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -279,7 +279,7 @@ def generate(env):
if env['build'] == 'profile':
env['debug'] = False
env['profile'] = True
- if env['build'] in ('release', 'opt'):
+ if env['build'] == 'release':
env['debug'] = False
env['profile'] = False
@@ -325,8 +325,6 @@ def generate(env):
cppdefines += ['NDEBUG']
if env['build'] == 'profile':
cppdefines += ['PROFILE']
- if env['build'] in ('opt', 'profile'):
- cppdefines += ['VMX86_STATS']
if env['platform'] in ('posix', 'linux', 'freebsd', 'darwin'):
cppdefines += [
'_POSIX_SOURCE',
@@ -477,7 +475,7 @@ def generate(env):
ccflags += [
'/O2', # optimize for speed
]
- if env['build'] in ('release', 'opt'):
+ if env['build'] == 'release':
if not env['clang']:
ccflags += [
'/GL', # enable whole program optimization
@@ -588,7 +586,7 @@ def generate(env):
shlinkflags += ['-Wl,--enable-stdcall-fixup']
#shlinkflags += ['-Wl,--kill-at']
if msvc:
- if env['build'] in ('release', 'opt') and not env['clang']:
+ if env['build'] == 'release' and not env['clang']:
# enable Link-time Code Generation
linkflags += ['/LTCG']
env.Append(ARFLAGS = ['/LTCG'])