custom nimcache dir

This commit is contained in:
Ștefan Talpalaru 2019-02-17 16:05:36 +01:00 committed by zah
parent 05535591f1
commit a96976cd0a
2 changed files with 9 additions and 2 deletions

View File

@ -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

6
nim.cfg Normal file
View File

@ -0,0 +1,6 @@
@if release:
nimcache = "nimcache/release/$projectName"
@else:
nimcache = "nimcache/debug/$projectName"
@end