[wip] allow enough flexibility in env/make vars so e.g. can use Homebrew clang on macOS

This commit is contained in:
Michael Bradley, Jr 2022-03-01 09:13:52 -06:00
parent 04390adae5
commit 19e552fef7
No known key found for this signature in database
GPG Key ID: 9FCA591DA4CE7D0D

View File

@ -96,14 +96,16 @@ NIM_PARAMS += --passC:"-I$(shell dirname $(LIBLEOPARD_HEADER))" --passL:"$(LIBLE
endif
ifneq ($(detected_OS),macOS)
NIM_PARAMS += --passL:"-fopenmp"
NIM_PARAMS += --passL:-fopenmp
endif
NIM_PARAMS += $(NIM_EXTRA_PARAMS)
$(LIBLEOPARD):
cd vendor/leopard && \
mkdir -p build && cd build && \
cmake .. $(LIBLEOPARD_CMAKE_FLAGS) && \
$(MAKE)
$(MAKE) libleopard
leopard: $(LIBLEOPARD)