diff options
| author | star9029 <[email protected]> | 2024-11-19 17:24:17 +0800 |
|---|---|---|
| committer | star9029 <[email protected]> | 2024-11-19 17:24:17 +0800 |
| commit | 7c30f1e7561a63653fb42251bc7548bc1abeb074 (patch) | |
| tree | 44f3ae08f069fcc3c6c444c8320b6e1014357106 | |
| parent | e06529223a2385e5bd56a9db2b95ed2262da1ae1 (diff) | |
improve xmake.lua
| -rw-r--r-- | xmake/modules/detect/sdks/find_vstudio.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua index 739a4c82b..44f5f7a2d 100644 --- a/xmake/modules/detect/sdks/find_vstudio.lua +++ b/xmake/modules/detect/sdks/find_vstudio.lua @@ -113,7 +113,7 @@ function find_build_tools(opt) VCToolsVersion = vs_toolset else local dir = find_directory("14*", path.join(sdkdir, "VC/Tools/MSVC")) - if dir and os.isdir(dir) then + if dir then VCToolsVersion = path.filename(dir) else return @@ -128,7 +128,7 @@ function find_build_tools(opt) WindowsSDKVersion = vs_sdkver else local dir = find_directory("10*", path.join(sdkdir, "Windows Kits/10/Lib")) - if dir and os.isdir(dir) then + if dir then WindowsSDKVersion = path.filename(dir) else return |
