Skip to content

Commit 6bf16ad

Browse files
committed
Drop -fopenmp from setup.py
No compiled code actually calls the OpenMP runtime; -fopenmp merely forces the linker dependency, and auditwheel then bundles libgomp
1 parent d427d4d commit 6bf16ad

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python_bindings/setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class BuildExt(build_ext):
104104
# because this extension mixes C and C++ sources and a C++ standard flag is
105105
# rejected by the compiler on C sources (and vice versa).
106106
c_opts = {
107-
'msvc': ['/EHsc', '/openmp', '/O2'],
107+
'msvc': ['/EHsc', '/O2'],
108108
'unix': ['-O3'],
109109
#'unix': ['-O0', '-g'],
110110
}
@@ -117,8 +117,7 @@ class BuildExt(build_ext):
117117
c_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.9']
118118
link_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.9']
119119
else:
120-
c_opts['unix'].append("-fopenmp")
121-
link_opts['unix'].extend(['-fopenmp', '-pthread'])
120+
link_opts['unix'].append('-pthread')
122121

123122
def build_extensions(self):
124123
ct = self.compiler.compiler_type

0 commit comments

Comments
 (0)