Commit 3ac57d4a authored by firm's avatar firm
Browse files

SPEC 2017 needs CC_VERSION_OPTION to be set

parent 6212ca1a
......@@ -71,6 +71,13 @@ parser.add_argument("--fortran-compiler", metavar="FC", default="gfortran",
parser.add_argument("--cpp-compiler", metavar="CXX", default="g++",
help="Use CXX to build benchmark programs, default=g++")
parser.add_argument("--c-compiler-version-option", metavar="FLAG", default=["--version"], action="append",
help="Flag that causes the CC to print its version, default=--version")
parser.add_argument("--cpp-compiler-version-option", metavar="FLAG", default=["--version"], action="append",
help="Flag that causes the CXX to print its version, default=--version")
parser.add_argument("--fortran-compiler-version-option", metavar="FLAG", default=["--version"], action="append",
help="Flag that causes the FC to print its version, default=--version")
parser.add_argument("--compiler-args", metavar="FLAGS", default=["-O3"], action="append",
help="Append FLAGS to build benchmark programs for all compilers, default=-O3")
parser.add_argument("--c-compiler-args", metavar="CFLAGS", default=[], action="append",
......@@ -487,6 +494,10 @@ def generate_spec_config(options, progs):
contents.append("CC = %s" % options.c_compiler)
contents.append("CXX = %s" % options.cpp_compiler)
contents.append("FC = %s" % options.fortran_compiler)
contents.append("CC_VERSION_OPTION = %s" % options.c_compiler_version_option)
contents.append("CXX_VERSION_OPTION = %s" % options.cpp_compiler_version_option)
contents.append("FC_VERSION_OPTION = %s" % options.fortran_compiler_version_option)
contents.append("")
contents.append("notes%03d = machine: %s" % (notes, socket.getfqdn()))
notes += 1
......
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