Windows: delete nimbus.nims on `mingw32-make update`

This commit is contained in:
Ștefan Talpalaru 2019-04-17 18:37:30 +02:00
parent 1a5f3dd0ed
commit 20d18e3af3
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 1 deletions

View File

@ -183,11 +183,12 @@ build-nim: | deps
#- initialises and updates the Git submodules
#- deletes the ".nimble" dir to force the execution of the "deps" target
#- deletes "nimbus.nims" which on Windows is a copy instead of a proper symlink
#- allows parallel building with the '+' prefix
#- rebuilds the Nim compiler after the corresponding submodule is updated
$(NIM_BINARY) update:
git submodule update --init --recursive
rm -rf $(NIMBLE_DIR)
rm -rf $(NIMBLE_DIR) nimbus.nims
+ [[ -e $(NIM_BINARY) && $(NIM_BINARY) -nt $(NIM_DIR)/lib/system.nim ]] || { $(BUILD_NIM); }
# don't use this target, or you risk updating dependency repos that are not ready to be used in Nimbus