Skip to content

Commit

Permalink
Changed path for the homebrew OpenMP library
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Seeuws committed Jun 13, 2024
1 parent 5587db7 commit f54ed4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,14 @@ def print2(*args, **kwargs):
l_args['unix'].append(f'-L{p}')
l_args['llvm'].append(f'-L{p}')
# HomeBrew
p = Path('/opt/homebrew/include')
#p = Path('/opt/homebrew/include')
p = Path('/opt/homebrew/opt/libomp/include') # Location changed
if p.exists():
print(f'Adding path to compiler: {p}')
c_args['unix'].append(f'-I{p}')
c_args['llvm'].append(f'-I{p}')
p = Path('/opt/homebrew/lib')
#p = Path('/opt/homebrew/lib')
p = Path('/opt/homebrew/opt/libomp/lib') # Location changed
if p.exists():
libomp = Path(p / 'libomp.a')
if self.distribution.forcestatic and platform.system() == 'Darwin' and libomp.exists():
Expand Down

0 comments on commit f54ed4e

Please sign in to comment.