diff --git a/scripts/test.lua b/scripts/test.lua index a392aac99..160c3451d 100644 --- a/scripts/test.lua +++ b/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)