Explorar o código

improve boost for msvc

ruki %!s(int64=4) %!d(string=hai) anos
pai
achega
4533470ecd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/b/boost/xmake.lua

+ 3 - 1
packages/b/boost/xmake.lua

@@ -90,7 +90,9 @@ package("boost")
             "--without-icu"
             "--without-icu"
         }
         }
         if is_host("windows") then
         if is_host("windows") then
-            os.vrunv("bootstrap.bat", bootstrap_argv)
+            import("core.tool.toolchain")
+            local runenvs = toolchain.load("msvc"):runenvs()
+            os.vrunv("bootstrap.bat", bootstrap_argv, {envs = runenvs})
         else
         else
             os.vrunv("./bootstrap.sh", bootstrap_argv)
             os.vrunv("./bootstrap.sh", bootstrap_argv)
         end
         end