make cpptrace support cross (#5738)

pull/5740/head
xpxz 2 weeks ago committed by GitHub
parent ae02d14e9a
commit e7ff876785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/c/cpptrace/xmake.lua

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

Loading…
Cancel
Save