From c94a8b77f8180616289a1e71e7208179e3aa5df1 Mon Sep 17 00:00:00 2001 From: Emil Ivanichkov Date: Fri, 2 Feb 2024 17:54:21 +0200 Subject: [PATCH] config(libbacktrace): Disable `libbacktrace` --- config.nims | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config.nims b/config.nims index f240bae..a0ac4f2 100644 --- a/config.nims +++ b/config.nims @@ -5,6 +5,9 @@ when withDir(thisDir(), system.fileExists("nimble.paths")): --path:"src" +# Turn off `libbacktrace` +--define:disable_libbacktrace + # Configuration synced with nwaku's - https://github.com/waku-org/nwaku/blob/master/config.nims # ---------------------------------------------------- nwaku config ---------------------------------------------------- if defined(release): @@ -84,11 +87,6 @@ switch("define", "withoutPCRE") if not defined(macosx): # add debugging symbols and original files and line numbers --debugger:native - if not (defined(windows) and defined(i386)) and not defined(disable_libbacktrace): - # light-weight stack traces using libbacktrace and libunwind - --define:nimStackTraceOverride - switch("import", "libbacktrace") - --define:nimOldCaseObjects # https://github.com/status-im/nim-confutils/issues/9 # `switch("warning[CaseTransition]", "off")` fails with "Error: invalid command line option: '--warning[CaseTransition]'"