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
Xavier Thompson
cython
Commits
3b688519
Commit
3b688519
authored
Jul 08, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pthread tag for runtests script
parent
012374eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
runtests.py
runtests.py
+9
-0
No files found.
runtests.py
View file @
3b688519
...
@@ -320,6 +320,14 @@ def update_cpp11_extension(ext):
...
@@ -320,6 +320,14 @@ def update_cpp11_extension(ext):
return EXCLUDE_EXT
return EXCLUDE_EXT
def update_pthread_extension(ext):
"""
use pthread to link and compile on platform which supports it
"""
if sys.platform in ('
linux
', '
linux2
', '
freebsd
', '
netbsd
', '
openbsd
'):
# FIXME: this check on the platform is hacky
ext.extra_compile_args.append("-pthread")
ext.extra_link_args.append("-pthread")
def get_cc_version(language):
def get_cc_version(language):
"""
"""
...
@@ -404,6 +412,7 @@ EXT_EXTRAS = {
...
@@ -404,6 +412,7 @@ EXT_EXTRAS = {
'tag:openmp': update_openmp_extension,
'tag:openmp': update_openmp_extension,
'tag:cpp11': update_cpp11_extension,
'tag:cpp11': update_cpp11_extension,
'tag:trace' : update_linetrace_extension,
'tag:trace' : update_linetrace_extension,
'tag:pthread': update_pthread_extension,
'tag:bytesformat': exclude_extension_in_pyver((3, 3), (3, 4)), # no %-bytes formatting
'tag:bytesformat': exclude_extension_in_pyver((3, 3), (3, 4)), # no %-bytes formatting
'tag:no-macos': exclude_extension_on_platform('darwin'),
'tag:no-macos': exclude_extension_on_platform('darwin'),
}
}
...
...
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