diff options
| author | ruki <[email protected]> | 2021-06-07 23:57:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-06-07 23:57:18 +0800 |
| commit | 659d77e6c9de550f076164d4a812b699edece3a1 (patch) | |
| tree | c8d12ff9309813176f2ebebb0ba386877ef413d7 /xmake/toolchains/xcode/xmake.lua | |
| parent | ac05ff1b22addf25aaf846e342239674fe5c05fe (diff) | |
add appletvos platform
Diffstat (limited to 'xmake/toolchains/xcode/xmake.lua')
| -rw-r--r-- | xmake/toolchains/xcode/xmake.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/toolchains/xcode/xmake.lua b/xmake/toolchains/xcode/xmake.lua index 67a58cbbb..b4d8c3d66 100644 --- a/xmake/toolchains/xcode/xmake.lua +++ b/xmake/toolchains/xcode/xmake.lua @@ -46,6 +46,10 @@ toolchain("xcode") arch = toolchain:arch() simulator = (arch == "i386") cross = simulator and "xcrun -sdk watchsimulator " or "xcrun -sdk watchos " + elseif toolchain:is_plat("appletvos") then + arch = toolchain:arch() + simulator = (arch == "i386" or arch == "x86_64") + cross = simulator and "xcrun -sdk appletvsimulator " or "xcrun -sdk appletvos " else raise("unknown platform for xcode!") end |
