scons: Debug build by default.
Match what autotools and other build systems do by default.
This commit is contained in:
@@ -53,7 +53,7 @@ def AddOptions(opts):
|
|||||||
from SCons.Variables.EnumVariable import EnumVariable as EnumOption
|
from SCons.Variables.EnumVariable import EnumVariable as EnumOption
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from SCons.Options.EnumOption import EnumOption
|
from SCons.Options.EnumOption import EnumOption
|
||||||
opts.Add(BoolOption('debug', 'debug build', 'no'))
|
opts.Add(BoolOption('debug', 'debug build', 'yes'))
|
||||||
opts.Add(BoolOption('profile', 'profile build', 'no'))
|
opts.Add(BoolOption('profile', 'profile build', 'no'))
|
||||||
opts.Add(BoolOption('quiet', 'quiet command lines', 'yes'))
|
opts.Add(BoolOption('quiet', 'quiet command lines', 'yes'))
|
||||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
||||||
|
@@ -264,7 +264,7 @@ def generate(env):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
# Build type
|
# Build type
|
||||||
env['debug'] = _bool_map[ARGUMENTS.get('debug', 'no')]
|
env['debug'] = _bool_map[ARGUMENTS.get('debug', 'yes')]
|
||||||
env['profile'] = _bool_map[ARGUMENTS.get('profile', 'no')]
|
env['profile'] = _bool_map[ARGUMENTS.get('profile', 'no')]
|
||||||
|
|
||||||
# Put build output in a separate dir, which depends on the current
|
# Put build output in a separate dir, which depends on the current
|
||||||
|
Reference in New Issue
Block a user