Merge branch 'newer-nim'
This commit is contained in:
commit
f7cef508b1
8
Makefile
8
Makefile
|
@ -34,7 +34,6 @@ 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)
|
||||||
|
@ -69,8 +68,7 @@ BUILD_NIM := echo -e $(BUILD_MSG) "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)
|
||||||
|
@ -167,11 +165,11 @@ build-nim: | deps
|
||||||
#- initialises and updates the Git submodules
|
#- initialises and updates the Git submodules
|
||||||
#- deletes the ".nimble" dir to force the execution of the "deps" target
|
#- deletes the ".nimble" dir to force the execution of the "deps" target
|
||||||
#- allows parallel building with the '+' prefix
|
#- allows parallel building with the '+' prefix
|
||||||
#- TODO: rebuild the Nim compiler after the corresponding submodule is updated
|
#- rebuilds the Nim compiler after the corresponding submodule is updated
|
||||||
$(NIM_BINARY) update:
|
$(NIM_BINARY) update:
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
rm -rf $(NIMBLE_DIR)
|
rm -rf $(NIMBLE_DIR)
|
||||||
+ [ -e $(NIM_BINARY) ] || { $(BUILD_NIM); }
|
+ [[ -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
|
# don't use this target, or you risk updating dependency repos that are not ready to be used in Nimbus
|
||||||
update-remote:
|
update-remote:
|
||||||
|
|
|
@ -21,10 +21,6 @@ ifdef LOG_LEVEL
|
||||||
NIM_PARAMS := $(NIM_PARAMS) -d:chronicles_log_level=$(LOG_LEVEL)
|
NIM_PARAMS := $(NIM_PARAMS) -d:chronicles_log_level=$(LOG_LEVEL)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
NIM_PARAMS := $(NIM_PARAMS) -d:chronicles_colors=NoColors
|
|
||||||
endif
|
|
||||||
|
|
||||||
# guess who does parsing before variable expansion
|
# guess who does parsing before variable expansion
|
||||||
COMMA := ,
|
COMMA := ,
|
||||||
EMPTY :=
|
EMPTY :=
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
-d:chronicles_line_numbers
|
-d:chronicles_line_numbers
|
||||||
-d:"chronicles_sinks=textlines[file]"
|
-d:"chronicles_sinks=textlines[file]"
|
||||||
-d:"chronicles_runtime_filtering=on"
|
-d:"chronicles_runtime_filtering=on"
|
||||||
# https://github.com/nim-lang/Nim/issues/8294#issuecomment-454556051
|
|
||||||
@if windows:
|
|
||||||
-d:"chronicles_colors=NoColors"
|
|
||||||
@end
|
|
||||||
-d:nimDebugDlOpen
|
-d:nimDebugDlOpen
|
||||||
--threads:on
|
--threads:on
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
-d:chronicles_line_numbers
|
-d:chronicles_line_numbers
|
||||||
-d:"chronicles_sinks=textblocks"
|
-d:"chronicles_sinks=textblocks"
|
||||||
# https://github.com/nim-lang/Nim/issues/8294#issuecomment-454556051
|
|
||||||
@if windows:
|
|
||||||
-d:"chronicles_colors=NoColors"
|
|
||||||
@end
|
|
||||||
--threads:on
|
--threads:on
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4b2f0035007d4060dd16279c8c5e49c0cfb3b8f7
|
Subproject commit b6d96cafc8bcad1f3d32f2910b25cd11a93f7751
|
|
@ -1 +1 @@
|
||||||
Subproject commit b7cafaf3434aceb78d9dd192b5085167a651d9ca
|
Subproject commit 2424b4747b0257287e5f59fa22e37c017975bbbd
|
Loading…
Reference in New Issue