Bläddra i källkod

modify vs runtime (#2239)

ruki 2 år sedan
förälder
incheckning
5dfcc8800e
1 ändrade filer med 6 tillägg och 0 borttagningar
  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)