OSDN Git Service

Revert "scons: Debug build by default."
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 17 Jun 2009 14:24:06 +0000 (15:24 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 17 Jun 2009 14:24:06 +0000 (15:24 +0100)
Per Brian's request.

This reverts commit 25f0c33bb3509958a532bdd72b3945c1d5d1cad5.

common.py
scons/generic.py

index 2d1b258..a687efc 100644 (file)
--- a/common.py
+++ b/common.py
@@ -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', 'yes'))
+       opts.Add(BoolOption('debug', 'debug build', 'no'))
        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,
index 0b3ef5a..29ddf76 100644 (file)
@@ -264,7 +264,7 @@ def generate(env):
         pass
 
     # Build type
-    env['debug'] = _bool_map[ARGUMENTS.get('debug', 'yes')]
+    env['debug'] = _bool_map[ARGUMENTS.get('debug', 'no')]
     env['profile'] = _bool_map[ARGUMENTS.get('profile', 'no')]
 
     # Put build output in a separate dir, which depends on the current