improve boost for mingw (#1809)

* improve boost for mingw

* improve boost

* improve boost
pull/1815/head
ruki 2 years ago committed by GitHub
parent 944b3d6f04
commit 58d8dac474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/b/boost/xmake.lua

@ -149,10 +149,13 @@ package("boost")
"--libdir=" .. package:installdir("lib"),
"--without-icu"
}
if is_host("windows") then
if package:is_plat("windows") then
import("core.tool.toolchain")
local runenvs = toolchain.load("msvc"):runenvs()
os.vrunv("bootstrap.bat", bootstrap_argv, {envs = runenvs})
elseif package:is_plat("mingw") and is_host("windows") then
os.vrunv("sh", table.join("./bootstrap.sh", bootstrap_argv))
os.cp("./tools/build/src/engine/b2.exe", ".")
else
os.vrunv("./bootstrap.sh", bootstrap_argv)
end

Loading…
Cancel
Save