diff options
author | Charmaine Lee <charmainel@vmware.com> | 2016-08-11 18:41:52 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2016-08-26 06:19:51 -0600 |
commit | a5fd54f8bf6713312fa5efd7ef5cd125557a0ffe (patch) | |
tree | 43dbf413afc24d3e8de56d1fcd828c0a373b7c10 /scons | |
parent | 2e1cfcc431471c68ba79c9323716bed7da79c909 (diff) |
svga: add opt to the list of valid build types
For opt build, add VMX86_STATS to the list of cpp defines.
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'scons')
-rwxr-xr-x | scons/gallium.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index 5fc082d142..7260daa291 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -256,7 +256,7 @@ def generate(env): if env['build'] == 'profile': env['debug'] = False env['profile'] = True - if env['build'] == 'release': + if env['build'] in ('release', 'opt'): env['debug'] = False env['profile'] = False @@ -301,6 +301,8 @@ 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', @@ -450,7 +452,7 @@ def generate(env): ccflags += [ '/O2', # optimize for speed ] - if env['build'] == 'release': + if env['build'] in ('release', 'opt'): if not env['clang']: ccflags += [ '/GL', # enable whole program optimization @@ -561,7 +563,7 @@ def generate(env): shlinkflags += ['-Wl,--enable-stdcall-fixup'] #shlinkflags += ['-Wl,--kill-at'] if msvc: - if env['build'] == 'release' and not env['clang']: + if env['build'] in ('release', 'opt') and not env['clang']: # enable Link-time Code Generation linkflags += ['/LTCG'] env.Append(ARFLAGS = ['/LTCG']) |