summaryrefslogtreecommitdiffstats
path: root/common.py
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-09-29 14:08:53 +0100
committerJosé Fonseca <[email protected]>2010-09-29 14:17:26 +0100
commit67450f0644f61fc17ab1315124dfe50537d36e9e (patch)
treefa0c928ce60e59ad292754629d2aaa97134549bd /common.py
parentfdcc168a16d59bf2b7fd291383f214834c2546f6 (diff)
scons: New build= option, with support for checked builds.
Where checked build is compiler optimizations plus debugging checks -- ideal for testing CPU bound loads and running test automation loads.
Diffstat (limited to 'common.py')
-rw-r--r--common.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/common.py b/common.py
index 7a14a2c026d..13e8dc83e97 100644
--- a/common.py
+++ b/common.py
@@ -81,8 +81,8 @@ 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('profile', 'profile build', 'no'))
+ opts.Add(EnumOption('build', 'build type', 'debug',
+ allowed_values=('debug', 'checked', 'profile', 'release')))
opts.Add(BoolOption('quiet', 'quiet command lines', 'yes'))
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
allowed_values=('generic', 'ppc', 'x86', 'x86_64')))
@@ -91,3 +91,5 @@ def AddOptions(opts):
opts.Add('toolchain', 'compiler toolchain', 'default')
opts.Add(BoolOption('llvm', 'use LLVM', default_llvm))
opts.Add(BoolOption('dri', 'build DRI drivers', default_dri))
+ opts.Add(BoolOption('debug', 'DEPRECATED: debug build', 'yes'))
+ opts.Add(BoolOption('profile', 'DEPRECATED: profile build', 'no'))