scons: make RUBY a regular (non-global) sticky var

and force it to True for builds that imply Ruby protocols
(else unexpected things happen when testing these builds
with RUBY=False).
This commit is contained in:
Steve Reinhardt 2010-06-07 12:19:59 -04:00
parent 744b59d6de
commit 4977d8b58f
6 changed files with 5 additions and 4 deletions

View file

@ -314,7 +314,6 @@ global_sticky_vars.AddVariables(
('BATCH_CMD', 'Batch pool submission command name', 'qdo'), ('BATCH_CMD', 'Batch pool submission command name', 'qdo'),
('EXTRAS', 'Add Extra directories to the compilation', '', ('EXTRAS', 'Add Extra directories to the compilation', '',
PathListAllExist, PathListMakeAbsolute), PathListAllExist, PathListMakeAbsolute),
BoolVariable('RUBY', 'Build with Ruby', False),
) )
# base help text # base help text
@ -688,6 +687,7 @@ sticky_vars.AddVariables(
BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv), BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv),
BoolVariable('USE_CHECKER', 'Use checker for detailed CPU models', False), BoolVariable('USE_CHECKER', 'Use checker for detailed CPU models', False),
BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False), BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False),
BoolVariable('RUBY', 'Build with Ruby', False),
) )
nonsticky_vars.AddVariables( nonsticky_vars.AddVariables(

View file

@ -2,3 +2,4 @@ FULL_SYSTEM = 0
SS_COMPATIBLE_FP = 1 SS_COMPATIBLE_FP = 1
CPU_MODELS = 'AtomicSimpleCPU,TimingSimpleCPU,O3CPU,InOrderCPU' CPU_MODELS = 'AtomicSimpleCPU,TimingSimpleCPU,O3CPU,InOrderCPU'
PROTOCOL = 'MESI_CMP_directory' PROTOCOL = 'MESI_CMP_directory'
RUBY = True

View file

@ -2,3 +2,4 @@ FULL_SYSTEM = 0
SS_COMPATIBLE_FP = 1 SS_COMPATIBLE_FP = 1
CPU_MODELS = 'AtomicSimpleCPU,TimingSimpleCPU,O3CPU,InOrderCPU' CPU_MODELS = 'AtomicSimpleCPU,TimingSimpleCPU,O3CPU,InOrderCPU'
PROTOCOL = 'MOESI_CMP_directory' PROTOCOL = 'MOESI_CMP_directory'
RUBY = True

View file

@ -2,3 +2,4 @@ FULL_SYSTEM = 0
SS_COMPATIBLE_FP = 1 SS_COMPATIBLE_FP = 1
CPU_MODELS = 'AtomicSimpleCPU,TimingSimpleCPU,O3CPU,InOrderCPU' CPU_MODELS = 'AtomicSimpleCPU,TimingSimpleCPU,O3CPU,InOrderCPU'
PROTOCOL = 'MOESI_CMP_token' PROTOCOL = 'MOESI_CMP_token'
RUBY = True

View file

@ -2,3 +2,4 @@ FULL_SYSTEM = 0
SS_COMPATIBLE_FP = 1 SS_COMPATIBLE_FP = 1
CPU_MODELS = 'AtomicSimpleCPU,TimingSimpleCPU,O3CPU,InOrderCPU' CPU_MODELS = 'AtomicSimpleCPU,TimingSimpleCPU,O3CPU,InOrderCPU'
PROTOCOL = 'MOESI_hammer' PROTOCOL = 'MOESI_hammer'
RUBY = True

View file

@ -30,9 +30,6 @@
Import('*') Import('*')
if not main['RUBY']:
Return()
sticky_vars.AddVariables( sticky_vars.AddVariables(
BoolVariable('NO_VECTOR_BOUNDS_CHECKS', "Don't do bounds checks", True), BoolVariable('NO_VECTOR_BOUNDS_CHECKS', "Don't do bounds checks", True),
BoolVariable('RUBY_DEBUG', "Add debugging stuff to Ruby", False), BoolVariable('RUBY_DEBUG', "Add debugging stuff to Ruby", False),