Explorar o código

improve test script

ruki hai 1 ano
pai
achega
63e3e31ea4
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      scripts/test.lua

+ 5 - 1
scripts/test.lua

@@ -78,7 +78,11 @@ function _require_packages(argv, packages)
     end
     local runtimes = argv.runtimes or argv.vs_runtime
     if runtimes then
-        table.insert(config_argv, "--vs_runtime=" .. runtimes)
+        if is_host("windows") then
+            table.insert(config_argv, "--vs_runtime=" .. runtimes)
+        else
+            table.insert(config_argv, "--runtimes=" .. runtimes)
+        end
     end
     if argv.xcode_sdkver then
         table.insert(config_argv, "--xcode_sdkver=" .. argv.xcode_sdkver)