Commit 3b688519 authored by gsamain's avatar gsamain

pthread tag for runtests script

parent 012374eb
......@@ -320,6 +320,14 @@ def update_cpp11_extension(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):
"""
......@@ -404,6 +412,7 @@ EXT_EXTRAS = {
'tag:openmp': update_openmp_extension,
'tag:cpp11': update_cpp11_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:no-macos': exclude_extension_on_platform('darwin'),
}
......
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