Commit 0c7417aa authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

added --config-only

parent 5db7e9ce
......@@ -21,8 +21,8 @@ for filename in "shrc version.txt README".split():
assert os.path.isfile(filename), "file missing: "+filename
parser = optparse.OptionParser(version=SCRIPT_VERSION)
parser.add_option("--build-only", action="store_true", default=False,
help="Just build SPEC programs, but do not run")
parser.add_option("--config-only", action="store_true", default=False,
help="Just generate config file, but do not build or run")
parser.add_option("--c-compiler", metavar="<CC>", default="cparser",
help="Use <CC> to build benchmark programs")
......@@ -48,6 +48,7 @@ _CONFIG_HEAD = """\
output_format = csv,html,raw,screen,config
ignore_errors = yes
makeflags = -j4 # allows multiple simultaneous compiles
test_sponsor = IPD Snelting
# just assuming:
hw_fpu = Integrated
......@@ -168,6 +169,8 @@ if __name__ == "__main__":
conf = generate_spec_config(options)
with open("config/generated.cfg", 'w') as fh:
if options.config_only:
cmd = "bash -c 'source shrc && runspec all -c generated'"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment