summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/xmake.lua
diff options
context:
space:
mode:
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