Makefile: rebuild Nimble in release mode

This commit is contained in:
Ștefan Talpalaru 2019-03-29 16:29:04 +01:00
parent 9428c708b8
commit 3908c0e570
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9

View File

@ -34,6 +34,7 @@ NIM_DIR := vendor/Nim
# but this is broken when using symlinks, so build csources separately (we get parallel compiling as a bonus) # but this is broken when using symlinks, so build csources separately (we get parallel compiling as a bonus)
#- Windows is a special case, as usual #- Windows is a special case, as usual
#- macOS is also a special case, with its "ln" not supporting "-r" #- macOS is also a special case, with its "ln" not supporting "-r"
#- rebuilds Nimble in release mode, for those using it manually
ifeq ($(OS), Windows_NT) ifeq ($(OS), Windows_NT)
# the AppVeyor 32-build is done on a 64-bit image, so we need to override the architecture detection # the AppVeyor 32-build is done on a 64-bit image, so we need to override the architecture detection
ifeq ($(ARCH_OVERRIDE), x86) ifeq ($(ARCH_OVERRIDE), x86)
@ -68,7 +69,8 @@ BUILD_NIM := echo "Building the Nim compiler." && \
} || { \ } || { \
cp -a bin/nim bin/nim_csources; \ cp -a bin/nim bin/nim_csources; \
} && \ } && \
sh build_all.sh $(HANDLE_OUTPUT) sh build_all.sh $(HANDLE_OUTPUT) && \
$(ENV_SCRIPT) nim c $(NIM_PARAMS) -d:release --noNimblePath -p:compiler --nilseqs:on -o:bin/nimble dist/nimble/src/nimble.nim
NIM_BINARY := $(NIM_DIR)/bin/nim$(EXE_SUFFIX) NIM_BINARY := $(NIM_DIR)/bin/nim$(EXE_SUFFIX)
# md5sum - macOS is a special case # md5sum - macOS is a special case
ifeq ($(shell uname), Darwin) ifeq ($(shell uname), Darwin)