From 167c1a2f4bda77c51b5e5f206ee95b6916d919b5 Mon Sep 17 00:00:00 2001 From: darshankabariya Date: Sat, 31 Jan 2026 01:50:25 +0530 Subject: [PATCH] initial commit for nimble - 3 --- Makefile | 3 +++ config.nims | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 11d4a70db..73e660251 100644 --- a/Makefile +++ b/Makefile @@ -65,10 +65,13 @@ waku.nims: ln -s waku.nimble $@ update: | waku.nims + git submodule update --init --recursive nimble setup && nimble sync $(MAKE) build-nph clean: + rm -rf ~/.nimble/pkg* + git clean -fdx rm -rf build build: diff --git a/config.nims b/config.nims index 51744dedb..96b7c735b 100644 --- a/config.nims +++ b/config.nims @@ -91,7 +91,7 @@ if not defined(macosx) and not defined(android): # light-weight stack traces using libbacktrace and libunwind --define: nimStackTraceOverride - switch("import", "libbacktrace") + # Note: libbacktrace import moved to after nimble paths are loaded (see below) --define: nimOldCaseObjects @@ -124,3 +124,8 @@ if defined(android): when withDir(thisDir(), system.fileExists("nimble.paths")): include "nimble.paths" # end Nimble config + +# Import libbacktrace for stack traces (must be after nimble paths are loaded) +if not defined(macosx) and not defined(android): + if not (defined(windows) and defined(i386)) and not defined(disable_libbacktrace): + switch("import", "libbacktrace")