summaryrefslogtreecommitdiff
path: root/src/mem/gems_common
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-05-11 10:38:46 -0700
committerNathan Binkert <nate@binkert.org>2009-05-11 10:38:46 -0700
commitcf6b4ef734293e1efdfa015519230703be5d324a (patch)
tree933fa3ce189682857b3d8caa2a32728681024ca5 /src/mem/gems_common
parentb174ec065e2b9f8ffa68c350b2563819eef5e9b1 (diff)
downloadgem5-cf6b4ef734293e1efdfa015519230703be5d324a.tar.xz
ruby: add RUBY sticky option that must be set to add ruby to the build
Default is false
Diffstat (limited to 'src/mem/gems_common')
-rw-r--r--src/mem/gems_common/SConscript3
-rw-r--r--src/mem/gems_common/ioutil/SConscript3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mem/gems_common/SConscript b/src/mem/gems_common/SConscript
index bd29a3737..69e7f88a3 100644
--- a/src/mem/gems_common/SConscript
+++ b/src/mem/gems_common/SConscript
@@ -30,6 +30,9 @@
Import('*')
+if not env['RUBY']:
+ Return()
+
#benv['LEXCOM'] = "$LEX $LEXFLAGS -o$TARGET $SOURCES"
benv = env.Clone()
benv.Append(YACCFLAGS=["-pat"])
diff --git a/src/mem/gems_common/ioutil/SConscript b/src/mem/gems_common/ioutil/SConscript
index 4c9357dfc..1cbab34b9 100644
--- a/src/mem/gems_common/ioutil/SConscript
+++ b/src/mem/gems_common/ioutil/SConscript
@@ -30,5 +30,8 @@
Import('*')
+if not env['RUBY']:
+ Return()
+
Source('confio.cc')
Source('initvar.cc')