Skip to content

Commit

Permalink
update sonic-cpp to support mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
heheda123123 authored Aug 16, 2023
1 parent 57c3242 commit d40d32e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/s/sonic-cpp/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ package("sonic-cpp")
os.cp("include", package:installdir())
end)

on_install("mingw", function (package)
io.replace("include/sonic/dom/type.h", "#include \"sonic/macro.h\"", "#include \"sonic/macro.h\"\ntypedef unsigned int uint;", {plain = true})
os.cp("include", package:installdir())
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include "sonic/sonic.h"
Expand Down

0 comments on commit d40d32e

Please sign in to comment.