diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-09-29 14:08:53 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-09-29 14:17:26 +0100 |
commit | 67450f0644f61fc17ab1315124dfe50537d36e9e (patch) | |
tree | fa0c928ce60e59ad292754629d2aaa97134549bd /common.py | |
parent | fdcc168a16d59bf2b7fd291383f214834c2546f6 (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.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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')) |