Skip to content

Commit

Permalink
[deploy] disable static linking with libomp.a on arm64 mac, fix #89
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 18, 2024
1 parent efc7496 commit d249435
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion commons/Makefile_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ else ifeq ($(findstring Darwin,$(PLATFORM)), Darwin)
OPENMP=-fopenmp
else
ifneq (,$(wildcard /opt/homebrew/opt/libomp/lib/libomp.a)) # brew on arm64 Apple installs libomp to /opt/homebrew/opt
OPENMPLIB=/opt/homebrew/opt/libomp/lib/libomp.a
ifneq (,$(filter mex,$(MAKECMDGOALS)))
OPENMPLIB=-lomp
else
OPENMPLIB=/opt/homebrew/opt/libomp/lib/libomp.a
endif
else
OPENMPLIB=/usr/local/lib/libomp.a
endif
Expand Down

0 comments on commit d249435

Please sign in to comment.