mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-23 19:50:49 +00:00
scons: Accept verbose=yes instead of quiet=no.
'verbose' is affirmative, and much more common name for this sort of option.
This commit is contained in:
parent
bf69ce37f0
commit
c7bd0fa485
@ -79,7 +79,7 @@ def AddOptions(opts):
|
||||
from SCons.Options.EnumOption import EnumOption
|
||||
opts.Add(EnumOption('build', 'build type', 'debug',
|
||||
allowed_values=('debug', 'checked', 'profile', 'release')))
|
||||
opts.Add(BoolOption('quiet', 'quiet command lines', 'yes'))
|
||||
opts.Add(BoolOption('verbose', 'verbose output', 'no'))
|
||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
||||
allowed_values=('generic', 'ppc', 'x86', 'x86_64')))
|
||||
opts.Add(EnumOption('platform', 'target platform', host_platform,
|
||||
@ -90,4 +90,5 @@ def AddOptions(opts):
|
||||
opts.Add(BoolOption('llvm', 'use LLVM', default_llvm))
|
||||
opts.Add(BoolOption('debug', 'DEPRECATED: debug build', 'yes'))
|
||||
opts.Add(BoolOption('profile', 'DEPRECATED: profile build', 'no'))
|
||||
opts.Add(BoolOption('quiet', 'DEPRECATED: quiet command lines', 'yes'))
|
||||
opts.Add(EnumOption('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0')))
|
||||
|
@ -157,7 +157,8 @@ def createCodeGenerateMethod(env):
|
||||
def generate(env):
|
||||
"""Common environment generation code"""
|
||||
|
||||
if env.get('quiet', True):
|
||||
verbose = env.get('verbose', False) or not env.get('quiet', True)
|
||||
if not verbose:
|
||||
quietCommandLines(env)
|
||||
|
||||
# Custom builders and methods
|
||||
|
Loading…
x
Reference in New Issue
Block a user