Skip to content

Commit

Permalink
improve find_vstudio #5820
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 14, 2024
1 parent 2c9034a commit 578338f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xmake/modules/detect/sdks/find_vstudio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ function _load_vcvarsall(vcvarsall, vsver, arch, opt)
file:close()

-- run genvcvars.bat
local outdata = try {function () return os.iorun(genvcvars_bat) end}
local outdata, errdata = try {function () return os.iorun(genvcvars_bat) end}
if not outdata then
if errdata then
wprint("get vcvars failed, %s", errdata)
end
return
end

Expand Down

0 comments on commit 578338f

Please sign in to comment.