summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-18 22:57:44 +0800
committerruki <[email protected]>2020-05-18 11:46:26 +0800
commit93db858087c1bdeba2585f2de409e53a8d8e8fbd (patch)
tree7f696114cd6c2fd15f9dc9fdda7cdc1096366ec6 /xmake/toolchains/xcode/xmake.lua
parent9aaf4d1f861acb3167ce101ddbf12a5f57b0392a (diff)
support watchos for xcode toolchain
Diffstat (limited to 'xmake/toolchains/xcode/xmake.lua')
-rw-r--r--xmake/toolchains/xcode/xmake.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/toolchains/xcode/xmake.lua b/xmake/toolchains/xcode/xmake.lua
index 4f45f6d60..f20fabe1f 100644
--- a/xmake/toolchains/xcode/xmake.lua
+++ b/xmake/toolchains/xcode/xmake.lua
@@ -35,6 +35,10 @@ toolchain("xcode")
local arch = get_config("arch") or os.arch()
local simulator = (arch == "i386" or arch == "x86_64")
cross = simulator and "xcrun -sdk iphonesimulator " or "xcrun -sdk iphoneos "
+ elseif is_plat("watchos") then
+ local arch = get_config("arch") or os.arch()
+ local simulator = (arch == "i386")
+ cross = simulator and "xcrun -sdk watchsimulator " or "xcrun -sdk watchos "
else
raise("unknown platform for xcode!")
end