summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavidWang19 <[email protected]>2026-05-03 09:38:54 +0100
committerDavidWang19 <[email protected]>2026-05-03 09:38:54 +0100
commit7778b7cb39646016c30bf3c6bf1e1897edc26529 (patch)
tree8660cf81b640c9a116a068fd2b105da92bc57cd5
parent05f0bb724f1e2d59d851828cb5d16d64ef98b860 (diff)
drop redundant empty argv on os.runv/iorunv calls
-rw-r--r--xmake/modules/detect/sdks/find_iccenv.lua2
-rw-r--r--xmake/modules/detect/sdks/find_icxenv.lua2
-rw-r--r--xmake/modules/detect/sdks/find_ifortenv.lua2
-rw-r--r--xmake/modules/detect/sdks/find_ifxenv.lua2
-rw-r--r--xmake/modules/detect/sdks/find_vstudio.lua2
-rw-r--r--xmake/modules/lib/detect/check_cxsnippets.lua4
-rw-r--r--xmake/modules/lib/detect/check_fcsnippets.lua4
7 files changed, 9 insertions, 9 deletions
diff --git a/xmake/modules/detect/sdks/find_iccenv.lua b/xmake/modules/detect/sdks/find_iccenv.lua
index e33050843..2d5e47df0 100644
--- a/xmake/modules/detect/sdks/find_iccenv.lua
+++ b/xmake/modules/detect/sdks/find_iccenv.lua
@@ -55,7 +55,7 @@ function _load_iclvars(iclvars_bat, arch, opt)
-- run geniclvars.bat
-- @note we use runv here so the bat path is not split on whitespace by os.argv,
-- which breaks detection when the temp file lives under a path with spaces.
- os.runv(geniclvars_bat, {})
+ os.runv(geniclvars_bat)
-- load all envirnoment variables
local variables = {}
diff --git a/xmake/modules/detect/sdks/find_icxenv.lua b/xmake/modules/detect/sdks/find_icxenv.lua
index 0a1941dc1..324bd2712 100644
--- a/xmake/modules/detect/sdks/find_icxenv.lua
+++ b/xmake/modules/detect/sdks/find_icxenv.lua
@@ -55,7 +55,7 @@ function _load_icxvars(icxvars_bat, arch, opt)
-- run genicxvars.bat
-- @note we use runv here so the bat path is not split on whitespace by os.argv,
-- which breaks detection when the temp file lives under a path with spaces.
- os.runv(genicxvars_bat, {})
+ os.runv(genicxvars_bat)
-- load all envirnoment variables
local variables = {}
diff --git a/xmake/modules/detect/sdks/find_ifortenv.lua b/xmake/modules/detect/sdks/find_ifortenv.lua
index 9c877e79e..6ae5f3f03 100644
--- a/xmake/modules/detect/sdks/find_ifortenv.lua
+++ b/xmake/modules/detect/sdks/find_ifortenv.lua
@@ -55,7 +55,7 @@ function _load_ifortvars(ifortvars_bat, arch, opt)
-- run genifortvars.bat
-- @note we use runv here so the bat path is not split on whitespace by os.argv,
-- which breaks detection when the temp file lives under a path with spaces.
- os.runv(genifortvars_bat, {})
+ os.runv(genifortvars_bat)
-- load all envirnoment variables
local variables = {}
diff --git a/xmake/modules/detect/sdks/find_ifxenv.lua b/xmake/modules/detect/sdks/find_ifxenv.lua
index 58d206e3f..8ca104ba7 100644
--- a/xmake/modules/detect/sdks/find_ifxenv.lua
+++ b/xmake/modules/detect/sdks/find_ifxenv.lua
@@ -55,7 +55,7 @@ function _load_ifxvars(ifxvars_bat, arch, opt)
-- run genifxvars.bat
-- @note we use runv here so the bat path is not split on whitespace by os.argv,
-- which breaks detection when the temp file lives under a path with spaces.
- os.runv(genifxvars_bat, {})
+ os.runv(genifxvars_bat)
-- load all envirnoment variables
local variables = {}
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua
index c0daf8f53..adfb8655d 100644
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -296,7 +296,7 @@ function _load_vcvarsall_impl(vcvarsall, vsver, arch, opt)
-- run genvcvars.bat
-- @note we use iorunv here so the bat path is not split on whitespace by os.argv,
-- which breaks detection when the temp file lives under a path with spaces.
- local outdata, errdata = try {function () return os.iorunv(genvcvars_bat, {}) end}
+ local outdata, errdata = try {function () return os.iorunv(genvcvars_bat) end}
if errdata and #errdata > 0 and option.get("verbose") and option.get("diagnosis") then
cprint("${color.warning}checkinfo: ${clear dim}get vcvars error: %s", errdata)
end
diff --git a/xmake/modules/lib/detect/check_cxsnippets.lua b/xmake/modules/lib/detect/check_cxsnippets.lua
index 48a0f189b..a6910522a 100644
--- a/xmake/modules/lib/detect/check_cxsnippets.lua
+++ b/xmake/modules/lib/detect/check_cxsnippets.lua
@@ -259,13 +259,13 @@ function main(snippets, opt)
-- whitespace by os.argv. mostly hits on Windows where TEMP lives
-- under the user profile and may contain spaces.
if opt.output then
- local output = os.iorunv(binaryfile, {})
+ local output = os.iorunv(binaryfile)
if output then
output = output:trim()
end
return true, output
else
- os.vrunv(binaryfile, {})
+ os.vrunv(binaryfile)
end
end
local binary_match = opt.binary_match
diff --git a/xmake/modules/lib/detect/check_fcsnippets.lua b/xmake/modules/lib/detect/check_fcsnippets.lua
index b6dcd8f46..a6b93cbbf 100644
--- a/xmake/modules/lib/detect/check_fcsnippets.lua
+++ b/xmake/modules/lib/detect/check_fcsnippets.lua
@@ -118,13 +118,13 @@ function main(snippets, opt)
-- whitespace by os.argv. mostly hits on Windows where TEMP lives
-- under the user profile and may contain spaces.
if opt.output then
- local output = os.iorunv(binaryfile, {})
+ local output = os.iorunv(binaryfile)
if output then
output = output:trim()
end
return true, output
else
- os.vrunv(binaryfile, {})
+ os.vrunv(binaryfile)
end
end
local binary_match = opt.binary_match