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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
a1ed75e4
Commit
a1ed75e4
authored
May 04, 2011
by
Mark Florisson
Committed by
Vitja Makarov
May 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use locale's encoding to decode output in test runner
parent
55ddc084
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
runtests.py
runtests.py
+6
-1
No files found.
runtests.py
View file @
a1ed75e4
...
...
@@ -4,6 +4,7 @@ import os
import
sys
import
re
import
gc
import
locale
import
codecs
import
shutil
import
time
...
...
@@ -130,7 +131,7 @@ def get_openmp_compiler_flags(language):
try:
p = subprocess.Popen([cc, "
-
v
"], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
except EnvironmentError
, e
:
except EnvironmentError:
# Be compatible with Python 3
_, e, _ = sys.exc_info()
warnings.warn("
Unable
to
find
the
%
s
compiler
:
%
s
:
%
s
" %
...
...
@@ -139,11 +140,15 @@ def get_openmp_compiler_flags(language):
output = p.stdout.read()
output = output.decode(locale.getpreferredencoding() or 'UTF-8')
compiler_version = matcher(output).group(1)
if compiler_version and compiler_version.split('.') >= ['4', '2']:
return '-fopenmp', '-fopenmp'
locale.setlocale(locale.LC_ALL, '')
OPENMP_C_COMPILER_FLAGS = get_openmp_compiler_flags('c')
OPENMP_CPP_COMPILER_FLAGS = get_openmp_compiler_flags('cpp')
...
...
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