diff options
| author | ruki <[email protected]> | 2024-11-15 22:32:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-11-15 22:32:27 +0800 |
| commit | 8e9d1508cff1bf96f7a7c27de0643cd1a393037b (patch) | |
| tree | e9c583b541d4ae5057a500efebf65cd88d31e4ea | |
| parent | 578338f2cb1f6ad1f1dbf94d5fe3f45421ea76c7 (diff) | |
improve warnings for find_vstudio
| -rw-r--r-- | xmake/modules/detect/sdks/find_vstudio.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua index a45366dea..a01ba3364 100644 --- a/xmake/modules/detect/sdks/find_vstudio.lua +++ b/xmake/modules/detect/sdks/find_vstudio.lua @@ -154,10 +154,10 @@ function _load_vcvarsall(vcvarsall, vsver, arch, opt) -- run genvcvars.bat local outdata, errdata = try {function () return os.iorun(genvcvars_bat) end} + if errdata then + wprint("%s", errdata) + end if not outdata then - if errdata then - wprint("get vcvars failed, %s", errdata) - end return end |
