Skip to content

Commit

Permalink
[7_15] Add require cpptrace 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Nov 13, 2024
1 parent 4051431 commit 29eeb53
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/System/Boot/init_texmacs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
#endif
#include "Metafont/load_tex.hpp"

#ifndef OS_WASM
#include <cpptrace/cpptrace.hpp>
#endif

#include <moebius/data/scheme.hpp>
#include <moebius/drd/drd_std.hpp>

Expand Down Expand Up @@ -70,7 +74,9 @@ void server_start ();
void
clean_exit_on_segfault (int sig_num) {
(void) sig_num;
cerr << lolly::get_stacktrace () << LF;
#ifndef OS_WASM
cpptrace::generate_trace ().print ();
#endif
TM_FAILED ("segmentation fault");
}

Expand Down
3 changes: 3 additions & 0 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ target("libmogan") do
build_glue_on_config()
add_tm_configure("libmogan", TM_CONFIGURE_VARS)

if not is_plat("wasm") then
add_packages("cpptrace")
end
add_packages("moebius")
if not is_plat("macosx") then
add_packages("libiconv")
Expand Down
4 changes: 4 additions & 0 deletions xmake/packages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function using_pacman ()
end

function add_requires_of_mogan()
if not is_plat("wasm") then
add_requires("cpptrace", {version = CPPTRACE_VERSION, system=false})
end

tbox_configs = {hash=true, ["force-utf8"]=true, charset=true}
add_requires("tbox " .. TBOX_VERSION, {system=false, configs=tbox_configs})

Expand Down
1 change: 1 addition & 0 deletions xmake/research.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ function add_target_research_on_others()

add_frameworks("QtGui", "QtWidgets", "QtCore", "QtPrintSupport", "QtSvg")

add_packages("cpptrace")
add_packages("moebius")
if is_plat("mingw", "windows") then
add_packages("qt6widgets")
Expand Down
1 change: 1 addition & 0 deletions xmake/tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function add_target_cpp_test(filepath, dep)
if is_plat ("mingw") then
add_packages("mingw-w64")
end
add_packages("cpptrace")
add_packages("s7")
add_packages("tree-sitter")
add_packages("tree-sitter-cpp")
Expand Down
1 change: 1 addition & 0 deletions xmake/vars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ TBOX_VERSION = "1.7.6"
LOLLY_VERSION = "1.4.26"

-- Third-party dependencies
CPPTRACE_VERSION = "v0.7.1"
S7_VERSION = "20240816"
TREESITTER_VERSION = "0.22.6"
TREESITTER_CPP_VERSION = "0.22.2"
Expand Down

0 comments on commit 29eeb53

Please sign in to comment.