mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
scons/svga: remove opt from the list of valid build types
This reverts commita5fd54f8bf. 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> (cherry picked from commitd6be0b5556)
This commit is contained in:
parent
222a646de3
commit
546c4b2db0
3 changed files with 4 additions and 8 deletions
|
|
@ -86,7 +86,7 @@ def AddOptions(opts):
|
|||
from SCons.Options.EnumOption import EnumOption
|
||||
opts.Add(EnumOption('build', 'build type', 'debug',
|
||||
allowed_values=('debug', 'checked', 'profile',
|
||||
'release', 'opt')))
|
||||
'release')))
|
||||
opts.Add(BoolOption('verbose', 'verbose output', 'no'))
|
||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code',
|
||||
default_machine,
|
||||
|
|
|
|||
|
|
@ -282,7 +282,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
|
||||
|
||||
|
|
@ -328,8 +328,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',
|
||||
|
|
@ -480,7 +478,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
|
||||
|
|
@ -591,7 +589,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'])
|
||||
|
|
|
|||
|
|
@ -91,8 +91,6 @@ svga_get_name( struct pipe_screen *pscreen )
|
|||
*/
|
||||
build = "build: DEBUG;";
|
||||
mutex = "mutex: " PIPE_ATOMIC ";";
|
||||
#elif defined(VMX86_STATS)
|
||||
build = "build: OPT;";
|
||||
#else
|
||||
build = "build: RELEASE;";
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue