Skip to content

Commit

Permalink
make cpptrace support cross (xmake-io#5738)
Browse files Browse the repository at this point in the history
  • Loading branch information
heheda123123 authored Nov 12, 2024
1 parent ae02d14 commit e7ff876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/c/cpptrace/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package("cpptrace")
add_syslinks("dbghelp")
elseif is_plat("macosx") then
add_deps("libdwarf")
elseif is_plat("linux") then
elseif is_plat("linux") or is_plat("cross") then
add_deps("libdwarf")
add_syslinks("dl")
elseif is_plat("mingw") then
Expand All @@ -35,7 +35,7 @@ package("cpptrace")

add_deps("cmake")

on_install("linux", "macosx", "windows", "mingw", function (package)
on_install("linux", "macosx", "windows", "mingw", "cross", function (package)
io.replace("CMakeLists.txt", "/WX", "", {plain = true})

if not package:config("shared") then
Expand Down

0 comments on commit e7ff876

Please sign in to comment.