summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/check.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-29 00:44:34 +0800
committerruki <[email protected]>2023-09-29 00:44:34 +0800
commit8c3407dd4cdde31afe856312f9c47a8633a5a4d9 (patch)
tree5e6345549dfa052806e44c29d790cefd350bf182 /xmake/toolchains/xcode/check.lua
parent58eee2611889b008c079cac585945eec8698198a (diff)
fix cross for xcode
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