Commit 968856c5 authored by Stefan Behnel's avatar Stefan Behnel

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

parent b7d6e693
...@@ -136,7 +136,11 @@ def get_openmp_compiler_flags(language): ...@@ -136,7 +136,11 @@ def get_openmp_compiler_flags(language):
output = output.decode(locale.getpreferredencoding() or 'ASCII', 'replace') 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']: if compiler_version and compiler_version.split('.') >= ['4', '2']:
return '-fopenmp', '-fopenmp' 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