Skip to content

Commit

Permalink
Don't always remove the gomp library
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Mar 27, 2023
1 parent baf6379 commit f99f6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def build_extensions(self):
for flag in ext.extra_compile_args:
if compiler_has_flag(self.compiler,flag):
extra_compile_args.append(flag)
if flag == '-fopenmp' and 'gomp' in libraries:
elif flag == '-fopenmp' and 'gomp' in libraries:
libraries.remove('gomp')
ext.extra_compile_args= extra_compile_args
ext.libraries= libraries
Expand Down

0 comments on commit f99f6b5

Please sign in to comment.