diff options
| author | ruki <[email protected]> | 2017-12-11 22:59:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-11 11:54:20 +0800 |
| commit | a4729d44c64cd85e4c981e87ee3cf01bab6f16ac (patch) | |
| tree | f72560d1783f85da1921955fa662597a150d7122 | |
| parent | 9c2bf2f28fe56a74758ee14efe33cbca6a781d8b (diff) | |
improve find xcode sdkver
| -rw-r--r-- | xmake/modules/detect/sdks/find_xcode_sdkvers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_xcode_sdkvers.lua b/xmake/modules/detect/sdks/find_xcode_sdkvers.lua index e6bd306d0..47b90d6e7 100644 --- a/xmake/modules/detect/sdks/find_xcode_sdkvers.lua +++ b/xmake/modules/detect/sdks/find_xcode_sdkvers.lua @@ -49,7 +49,7 @@ function main(opt) -- get xcode directory local xcode_sdkvers = {} local xcode_dir = opt.xcode_dir or find_xcode_dir() - if not os.isdir(xcode_dir) then + if not xcode_dir or not os.isdir(xcode_dir) then return xcode_sdkvers end |
