Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
968856c5
Commit
968856c5
authored
Apr 13, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix exception during OpenMP detection in test runner for non-gcc
parent
b7d6e693
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
runtests.py
runtests.py
+5
-1
No files found.
runtests.py
View file @
968856c5
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment