tools and tests end up linking to the NAT libraries too

This commit is contained in:
Ștefan Talpalaru 2019-04-17 04:19:56 +02:00
parent d4aff04cbd
commit 8a3ef31ec4
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9

View File

@ -94,7 +94,7 @@ all: $(TOOLS) nimbus
$(SILENT_TARGET_PREFIX).SILENT:
# builds the tools, wherever they are
$(TOOLS): | build deps
$(TOOLS): | build deps nat-libs
for D in $(TOOLS_DIRS); do [ -e "$${D}/$@.nim" ] && TOOL_DIR="$${D}" && break; done && \
echo -e $(BUILD_MSG) "build/$@" && \
$(ENV_SCRIPT) nim c $(NIM_PARAMS) -o:build/$@ "$${TOOL_DIR}/$@.nim"
@ -138,7 +138,7 @@ nimbus.nims:
ln -s nimbus.nimble $@
# builds and runs the test suite
test: | build deps
test: | build deps nat-libs
$(ENV_SCRIPT) nim test $(NIM_PARAMS) nimbus.nims
# primitive reproducibility test