summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-02-28 11:38:56 +0800
committerruki <[email protected]>2025-02-28 11:38:56 +0800
commit11b33da5232cde7751c22a6a98fc2367656dd7a7 (patch)
tree0216ddbbcef8a4082471714fcbb1ac81e0c1c5e8
parent0fb17801c211b0ec7d0dc6757b0e604b4f707d36 (diff)
fix checkinfo
-rw-r--r--xmake/modules/detect/sdks/find_vstudio.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua
index 25af40ff9..c3aca3ad4 100644
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -275,7 +275,7 @@ function _load_vcvarsall_impl(vcvarsall, vsver, arch, opt)
-- run genvcvars.bat
local outdata, errdata = try {function () return os.iorun(genvcvars_bat) end}
- if errdata and option.get("verbose") and option.get("diagnosis") then
+ 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
if not outdata then