diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-06-17 10:14:32 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-06-17 15:23:24 +0100 |
commit | 25f0c33bb3509958a532bdd72b3945c1d5d1cad5 (patch) | |
tree | 669c79c68e4ffd05ab10db5eb136a768c756acb6 | |
parent | c53705ed7b89e5a2586b534508182de9c72452ea (diff) |
scons: Debug build by default.
Match what autotools and other build systems do by default.
-rw-r--r-- | common.py | 2 | ||||
-rw-r--r-- | scons/generic.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -53,7 +53,7 @@ def AddOptions(opts): from SCons.Variables.EnumVariable import EnumVariable as EnumOption except ImportError: 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('quiet', 'quiet command lines', 'yes')) opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine, diff --git a/scons/generic.py b/scons/generic.py index 29ddf76d6f..0b3ef5a15d 100644 --- a/scons/generic.py +++ b/scons/generic.py @@ -264,7 +264,7 @@ def generate(env): pass # 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')] # Put build output in a separate dir, which depends on the current |