From 4c51eee7f9e1c8c1da7c4f7a75fd7d7e4ff0c26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Mon, 21 Sep 2020 08:40:01 +0200 Subject: [PATCH] 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 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a3bc20a17..9c4e97ef6 100644 --- a/Makefile +++ b/Makefile @@ -111,9 +111,10 @@ endif 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) -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 NIM_PARAMS := $(NIM_PARAMS) -d:release endif