From 93db858087c1bdeba2585f2de409e53a8d8e8fbd Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 18 May 2020 22:57:44 +0800 Subject: support watchos for xcode toolchain --- xmake/toolchains/xcode/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmake/toolchains/xcode/xmake.lua') 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 -- cgit v1.3.1