Improvements to SConstruct:

* Default target is release instead of debug (scons with no arguments).
* All targets now include debug symbols, including release.
Rationale: "out of the box" builds of rippled using plain "scons" or "scons -j4" will produce
a debug instead of a release build, which could underperform.
This commit is contained in:
Mark Travis
2014-09-23 16:52:11 -07:00
committed by Vinnie Falco
parent d78f740250
commit 7f43ab9097

View File

@@ -259,6 +259,7 @@ def config_env(toolchain, variant, env):
'-Wno-sign-compare',
'-Wno-char-subscripts',
'-Wno-format',
'-g' # enable debug symbols for gcc and clang
])
if toolchain == 'clang':
@@ -323,11 +324,7 @@ def config_env(toolchain, variant, env):
'-rdynamic'
])
if variant == 'debug':
env.Append(CCFLAGS=[
'-g'
])
elif variant == 'release':
if variant == 'release':
env.Append(CCFLAGS=[
'-O3',
'-fno-strict-aliasing'
@@ -505,7 +502,7 @@ else:
default_toolchain = 'clang'
else:
raise ValueError("Don't understand toolchains in " + str(toolchains))
default_variant = 'debug'
default_variant = 'release'
default_target = None
for source in [