Browse Source

modify vs runtime (#2239)

ruki 2 years ago
parent
commit
5dfcc8800e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/c/coost/xmake.lua

+ 6 - 0
packages/c/coost/xmake.lua

@@ -37,6 +37,12 @@ package("coost")
                 configs["with_" .. name] = true
             end
         end
+        if package:is_plat("windows") then
+            local vs_runtime = package:config("vs_runtime")
+            if vs_runtime then
+                io.replace("xmake.lua", "set_runtimes%(.-%)", "set_runtimes(\"" .. vs_runtime .. "\")")
+            end
+        end
         import("package.tools.xmake").install(package, configs)
     end)