enable ust on mingw (#2482)

pull/2485/head
Yiheng Wu 2 years ago committed by GitHub
parent a5066140a5
commit b33bd2f94f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/u/universal_stacktrace/xmake.lua

@ -11,7 +11,7 @@ package("universal_stacktrace")
add_syslinks("dbghelp")
end
on_install("linux", "macosx", "windows", function (package)
on_install("linux", "macosx", "windows", "mingw", function (package)
io.replace("ust/ust.hpp", "#include <vector>", "#include <vector>\n#include <cstring>", {plain = true})
io.replace("ust/ust.hpp", "#include <DbgHelp.h>\n#include <windows.h>", "#include <windows.h>\n#include <DbgHelp.h>", {plain = true})
os.cp("ust", package:installdir("include"))

Loading…
Cancel
Save