summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2011-08-02 00:10:08 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2011-08-02 00:10:08 -0500
commit1b49c56679b18b068e04cfe074bf984897fe656b (patch)
tree200a63d9313333626c7a2138892ce7aaf1f44f35 /SConstruct
parent206c2e9a0ee04e00100dde25da9b15cbfbaac0d6 (diff)
downloadgem5-1b49c56679b18b068e04cfe074bf984897fe656b.tar.xz
Scons: Drop RUBY as compile time option.
This patch drops RUBY as a compile time option. Instead the PROTOCOL option is used to figure out whether or not to build Ruby. If the specified protocol is 'None', then Ruby is not compiled.
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct6
1 files changed, 5 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 8c09e5e4d..6074675c8 100755
--- a/SConstruct
+++ b/SConstruct
@@ -810,7 +810,6 @@ sticky_vars.AddVariables(
BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv),
BoolVariable('USE_CHECKER', 'Use checker for detailed CPU models', False),
BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False),
- BoolVariable('RUBY', 'Build with Ruby', False),
)
# These variables get exported to #defines in config/*.hh (see src/SConscript).
@@ -985,6 +984,11 @@ for variant_path in variant_paths:
if env['USE_SSE2']:
env.Append(CCFLAGS=['-msse2'])
+ if env['PROTOCOL'] != 'None':
+ env['RUBY'] = True
+ else:
+ env['RUBY'] = False
+
# The src/SConscript file sets up the build rules in 'env' according
# to the configured variables. It returns a list of environments,
# one for each variant build (debug, opt, etc.)