chore: add nim-libbacktrace

This commit is contained in:
Igor Sirotin 2024-06-27 17:06:44 +02:00
parent 5c349d1938
commit 88d9dac1de
3 changed files with 11 additions and 1 deletions

5
.gitmodules vendored
View File

@ -114,3 +114,8 @@
[submodule "vendor/qzxing"]
path = vendor/qzxing
url = https://github.com/status-im/qzxing.git
[submodule "vendor/nim-libbacktrace"]
path = vendor/nim-libbacktrace
url = https://github.com/status-im/nim-libbacktrace.git
ignore = untracked
branch = master

View File

@ -544,7 +544,7 @@ else
endif
$(NIM_STATUS_CLIENT): NIM_PARAMS += $(RESOURCES_LAYOUT)
$(NIM_STATUS_CLIENT): $(NIM_SOURCES) | statusq dotherside check-qt-dir $(STATUSGO) $(STATUSKEYCARDGO) $(QRCODEGEN) $(FLEETS) rcc compile-translations deps
$(NIM_STATUS_CLIENT): $(NIM_SOURCES) | statusq dotherside check-qt-dir $(STATUSGO) $(STATUSKEYCARDGO) $(QRCODEGEN) $(FLEETS) rcc compile-translations deps libbacktrace
echo -e $(BUILD_MSG) "$@"
$(ENV_SCRIPT) nim c $(NIM_PARAMS) \
--passL:"-L$(STATUSGO_LIBDIR)" \
@ -841,4 +841,8 @@ tests-nim-linux: | dotherside
LD_LIBRARY_PATH="$(QT5_LIBDIR):$(LD_LIBRARY_PATH)" \
$(foreach nimfile,$(NIM_TEST_FILES),$(ENV_SCRIPT) nim c $(NIM_PARAMS) $(NIM_EXTRA_PARAMS) -r $(nimfile);)
libbacktrace:
echo -e "\033[92mBuilding:\033[39m nim-libbacktrace"
+ $(MAKE) -C vendor/nim-libbacktrace --no-print-directory BUILD_CXX_LIB=0 $(HANDLE_OUTPUT)
endif # "variables.mk" was not included

1
vendor/nim-libbacktrace vendored Submodule

@ -0,0 +1 @@
Subproject commit 4db9cae5ac0225e3439f577f5c5cd67086232b3f