fix build in gcc 13 (#4289)

pull/4293/head
xpxz 6 months ago committed by GitHub
parent 20fca998c9
commit 1c2ba2073b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      packages/c/crossguid/xmake.lua

@ -19,6 +19,7 @@ package("crossguid")
add_deps("cmake")
on_install("windows", "linux", "macosx", "iphoneos", "android", "mingw", function (package)
io.replace(path.translate("include/crossguid/guid.hpp"), "#include <functional>", "#include <cstdint>\n#include<functional>", { plain = true })
local configs = {"-DCROSSGUID_TESTS=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
import("package.tools.cmake").install(package, configs, {buildir = "build"})

Loading…
Cancel
Save