USE_LIBBACKTRACE=0: speed up compilation by 3.31% (#1686)

* USE_LIBBACKTRACE=0: speed up compilation by 3.31%

* USE_LIBBACKTRACE=0: no line numbers in stack traces; blame Jacek
This commit is contained in:
Ștefan Talpalaru 2020-09-21 08:40:01 +02:00 committed by GitHub
parent 2b6c287dbb
commit 4c51eee7f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -111,9 +111,10 @@ endif
DEPOSITS_DELAY := 0 DEPOSITS_DELAY := 0
# "--define:release" implies "--stacktrace:off" and it cannot be added to config.nims # "--define:release" cannot be added to config.nims
ifeq ($(USE_LIBBACKTRACE), 0) ifeq ($(USE_LIBBACKTRACE), 0)
NIM_PARAMS := $(NIM_PARAMS) -d:debug -d:disable_libbacktrace # Blame Jacek for the lack of line numbers in your stack traces ;-)
NIM_PARAMS := $(NIM_PARAMS) -d:release --stacktrace:on --excessiveStackTrace:on --linetrace:off -d:disable_libbacktrace
else else
NIM_PARAMS := $(NIM_PARAMS) -d:release NIM_PARAMS := $(NIM_PARAMS) -d:release
endif endif