From a96976cd0a3f3d01acf1fadc6502b0ee54912db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Sun, 17 Feb 2019 16:05:36 +0100 Subject: [PATCH] custom nimcache dir --- Makefile | 5 +++-- nim.cfg | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 nim.cfg diff --git a/Makefile b/Makefile index 8e810c869..5c4d301fd 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ BUILD_NIM := cd $(NIM_DIR) && \ ln -s ../../nimble dist/nimble && \ cd csources && \ $(BUILD_CSOURCES) && \ - cd - && \ + cd - >/dev/null && \ [ -e csources/bin ] && { \ cp -a csources/bin/nim bin/nim && \ cp -a csources/bin/nim bin/nim_csources && \ @@ -139,7 +139,8 @@ test-reproducibility: # usual cleaning clean: - rm -rf build/{nimbus,premix,persist,debug,dumper,hunter,all_tests,beacon_node,validator_keygen,*.exe} $(NIMBLE_DIR) $(NIM_BINARY) + rm -rf build/{nimbus,premix,persist,debug,dumper,hunter,all_tests,beacon_node,validator_keygen,*.exe} \ + $(NIMBLE_DIR) $(NIM_BINARY) $(NIM_DIR)/nimcache nimcache # dangerous cleaning, because you may have not-yet-pushed branches and commits in those vendor repos you're about to delete mrproper: clean diff --git a/nim.cfg b/nim.cfg new file mode 100644 index 000000000..70a06f8f3 --- /dev/null +++ b/nim.cfg @@ -0,0 +1,6 @@ +@if release: + nimcache = "nimcache/release/$projectName" +@else: + nimcache = "nimcache/debug/$projectName" +@end +