From 11b33da5232cde7751c22a6a98fc2367656dd7a7 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 28 Feb 2025 11:38:56 +0800 Subject: fix checkinfo --- xmake/modules/detect/sdks/find_vstudio.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1