Skip to content

Commit

Permalink
support disabling OpenMP
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 29, 2018
1 parent f94710f commit b039186
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ def LazyNPPath():
return numpy.get_include()


if sys.platform == 'win32':
# MSVC - we do not yet support mingw or clang
openmp_cflags = ['/openmp']
openmp_lflags = []
if os.environ.get('USE_OPENMP', 'yes') == 'yes':
if sys.platform == 'win32':
# MSVC - we do not yet support mingw or clang
openmp_cflags = ['/openmp']
openmp_lflags = []
else:
# assume we are using GCC or compatible
openmp_cflags = ['-fopenmp']
openmp_lflags = ['-fopenmp']
else:
# assume we are using GCC or compatible
openmp_cflags = ['-fopenmp']
openmp_lflags = ['-fopenmp']
openmp_cflags = []
openmp_lflags = []

debug_cflags = []
cython_opts = {}
Expand Down

0 comments on commit b039186

Please sign in to comment.