py-scikit-learn: update OpenMP flag (#13683)

This commit is contained in:
Adam J. Stewart 2019-11-11 12:52:30 -06:00 committed by GitHub
parent 3eb19b142f
commit 38da69346c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ def setup_build_environment(self, env):
# https://scikit-learn.org/stable/developers/advanced_installation.html#mac-osx
elif self.spec.satisfies('@0.21: %clang platform=darwin +openmp'):
env.append_flags(
'CPPFLAGS', '-Xpreprocessor -fopenmp')
'CPPFLAGS', self.compiler.openmp_flag)
env.append_flags(
'CFLAGS', self.spec['llvm-openmp'].headers.include_flags)
env.append_flags(