mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-26 11:35:23 +00:00
[wip] allow enough flexibility in env/make vars so e.g. can use Homebrew clang on macOS
This commit is contained in:
parent
04390adae5
commit
19e552fef7
6
Makefile
6
Makefile
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user