config(libbacktrace): Disable `libbacktrace`

This commit is contained in:
Emil Ivanichkov 2024-02-02 17:54:21 +02:00 committed by Emil Ivanichkov
parent 982459187b
commit c94a8b77f8
1 changed files with 3 additions and 5 deletions

View File

@ -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]'"