Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 968856c54b51488da01cb1104efe0a5e98967fb6 1 parent b7d6e69
@scoder scoder authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 runtests.py
View
6 runtests.py
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.