Skip to content

Commit

Permalink
more apple fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Mar 25, 2023
1 parent 9cc6f5d commit 6c9f7f6
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 @@ -123,9 +123,9 @@ def add_openmp_linkage(self):
try:
res_brew_pref = subprocess.run(["brew", "--prefix", "libomp"], capture_output=True)
if res_brew_pref.returncode == EXIT_SUCCESS:
has_brew_omp = True
brew_omp_prefix = res_brew_pref.stdout.decode().strip()
args_apple_omp3 = ["-Xclang", "-fopenmp", f"-L{brew_omp_prefix}/lib", "-lomp", f"-I{brew_omp_prefix}/include"]
has_brew_omp = True
except Exception as e:
pass

Expand Down

0 comments on commit 6c9f7f6

Please sign in to comment.