Skip to content
Snippets Groups Projects
Commit 76bc6d94 authored by David Rafferty's avatar David Rafferty
Browse files

Disable OpenMP support on Darwin

parent f3ce3893
No related branches found
No related tags found
1 merge request!18Add c++ version of mean shift algorithm
...@@ -60,9 +60,13 @@ class LSMToolDistribution(Distribution): ...@@ -60,9 +60,13 @@ class LSMToolDistribution(Distribution):
class BuildExt(build_ext): class BuildExt(build_ext):
def build_extensions(self): def build_extensions(self):
opts = ['-fopenmp', '-std=c++11'] opts = ['-std=c++11']
if sys.platform == 'darwin': if sys.platform == 'darwin':
opts += ['-stdlib=libc++'] opts += ['-stdlib=libc++']
else:
# Enable OpenMP support only on non-Darwin platforms, as clang
# does not support it without some work
opts += ['-fopenmp']
for ext in self.extensions: for ext in self.extensions:
ext.extra_compile_args = opts ext.extra_compile_args = opts
build_ext.build_extensions(self) build_ext.build_extensions(self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment