summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-11 22:59:03 +0800
committerruki <[email protected]>2017-12-11 11:54:20 +0800
commita4729d44c64cd85e4c981e87ee3cf01bab6f16ac (patch)
treef72560d1783f85da1921955fa662597a150d7122
parent9c2bf2f28fe56a74758ee14efe33cbca6a781d8b (diff)
improve find xcode sdkver
-rw-r--r--xmake/modules/detect/sdks/find_xcode_sdkvers.lua2
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