summaryrefslogtreecommitdiff
path: root/configs/example
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 /configs/example
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 'configs/example')
-rw-r--r--configs/example/se.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/configs/example/se.py b/configs/example/se.py
index 6ed3de4f6..a34a03b29 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -71,13 +71,12 @@ parser.add_option("-i", "--input", default="", help="Read stdin from a file.")
parser.add_option("--output", default="", help="Redirect stdout to a file.")
parser.add_option("--errout", default="", help="Redirect stderr to a file.")
-if 'PROTOCOL' in buildEnv:
- parser.add_option("--ruby", action="store_true")
-
execfile(os.path.join(config_root, "common", "Options.py"))
-if '--ruby' in sys.argv:
- Ruby.define_options(parser)
+if buildEnv['PROTOCOL'] != 'None':
+ parser.add_option("--ruby", action="store_true")
+ if '--ruby' in sys.argv:
+ Ruby.define_options(parser)
(options, args) = parser.parse_args()