Commit 03e0fdb8 authored by Stefan Behnel's avatar Stefan Behnel

fix exception during OpenMP detection in test runner for non-gcc

--HG--
extra : transplant_source : %9A%B9%B3%3B%3E%07%C1%F5H%3F%AFm%F1t%B9%3Cg4%C9/
parent b8a87f10
......@@ -136,7 +136,11 @@ def get_openmp_compiler_flags(language):
output = output.decode(locale.getpreferredencoding() or 'ASCII', 'replace')
compiler_version = matcher(output).group(1)
gcc_version = matcher(output)
if not gcc_version:
return None # not gcc - FIXME: do something about other compilers
compiler_version = gcc_version.group(1)
if compiler_version and compiler_version.split('.') >= ['4', '2']:
return '-fopenmp', '-fopenmp'
......
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