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 2765c99 commit 8841513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -107,9 +107,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 8841513

Please sign in to comment.