Commit 6b58746b authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Do not break on compiler version identification

parent df564994
......@@ -144,9 +144,12 @@ def get_cpu_info(): # TODO ignores multiple cpus
def get_compiler_version(compiler):
"""Get the version from a compiler executable"""
d = execute(compiler+" --version")
for line in d:
return line
try:
d = execute(compiler+" --version")
for line in d:
return line
except OSError:
return "No compiler '%s' found." % compiler
PORTABILITY_FLAGS = dict()
PORTABILITY_FLAGS[("SPEC CPU2000", "Ubuntu", 32)] = """\
......
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