initial commit for nimble - 3

This commit is contained in:
darshankabariya 2026-01-31 01:50:25 +05:30
parent 34b433d65f
commit 167c1a2f4b
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22
2 changed files with 9 additions and 1 deletions

View File

@ -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:

View File

@ -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")