Skip to content

Commit

Permalink
typo in darwin check
Browse files Browse the repository at this point in the history
  • Loading branch information
charnley committed Jan 13, 2025
1 parent ea3a9ba commit 5e7964a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ def find_env() -> dict[str, str]:
linker_math = [
"-lblas",
"-llapack",
"-L/usr/lib/",
]

# MacOS X specific flags
if "darwin " in sys.platform:
if "darwin" in sys.platform:

expected_omp_dir = Path("/opt/homebrew/opt/libomp/lib")

Expand All @@ -108,7 +109,6 @@ def find_env() -> dict[str, str]:
f"-L{expected_omp_dir}",
"-lomp",
]
linker_math += ["-L/usr/lib/"]

else:
print(f"Expected OpenMP dir not found: {expected_omp_dir}, compiling without OpenMP")
Expand Down

0 comments on commit 5e7964a

Please sign in to comment.