summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/check.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/toolchains/xcode/check.lua')
-rw-r--r--xmake/toolchains/xcode/check.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/toolchains/xcode/check.lua b/xmake/toolchains/xcode/check.lua
index 1c013d5d4..40c05095c 100644
--- a/xmake/toolchains/xcode/check.lua
+++ b/xmake/toolchains/xcode/check.lua
@@ -73,11 +73,11 @@ function main(toolchain)
end
-- get xcode bin directory
+ local cross
if xcode.sdkdir and os.isdir(xcode.sdkdir) then
local bindir = path.join(xcode.sdkdir, "Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin")
toolchain:config_set("bindir", bindir)
else
- local cross
if toolchain:is_plat("macosx") then
cross = "xcrun -sdk macosx "
elseif toolchain:is_plat("iphoneos") then