changeset 82ff928182c5 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=82ff928182c5
description:
se.py: Fixes the way ruby's options are added
diffstat:
configs/example/se.py | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (26 lines):
diff -r 9c754e3022b7 -r 82ff928182c5 configs/example/se.py
--- a/configs/example/se.py Mon Jul 11 16:52:52 2011 -0500
+++ b/configs/example/se.py Mon Jul 11 19:57:10 2011 -0500
@@ -70,16 +70,17 @@
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.")
-parser.add_option("--ruby", action="store_true")
+
+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)
+
(options, args) = parser.parse_args()
-if options.ruby:
- Ruby.define_options(parser)
- (options, args) = parser.parse_args()
-
if args:
print "Error: script doesn't take any positional arguments"
sys.exit(1)
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev