summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/check.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-06-07 23:57:18 +0800
committerruki <[email protected]>2021-06-07 23:57:18 +0800
commit659d77e6c9de550f076164d4a812b699edece3a1 (patch)
treec8d12ff9309813176f2ebebb0ba386877ef413d7 /xmake/toolchains/xcode/check.lua
parentac05ff1b22addf25aaf846e342239674fe5c05fe (diff)
add appletvos platform
Diffstat (limited to 'xmake/toolchains/xcode/check.lua')
-rw-r--r--xmake/toolchains/xcode/check.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/toolchains/xcode/check.lua b/xmake/toolchains/xcode/check.lua
index 066929f2d..ed0d917db 100644
--- a/xmake/toolchains/xcode/check.lua
+++ b/xmake/toolchains/xcode/check.lua
@@ -70,6 +70,9 @@ function main(toolchain)
elseif toolchain:is_plat("watchos") then
local platname = toolchain:is_arch("i386", "x86_64") and "WatchSimulator" or "WatchOS"
xcode_sysroot = format("%s/Contents/Developer/Platforms/%s.platform/Developer/SDKs/%s%s.sdk", xcode.sdkdir, platname, platname, xcode_sdkver)
+ elseif toolchain:is_plat("appletvos") then
+ local platname = toolchain:is_arch("i386", "x86_64") and "AppleTVSimulator" or "AppleTVOS"
+ xcode_sysroot = format("%s/Contents/Developer/Platforms/%s.platform/Developer/SDKs/%s%s.sdk", xcode.sdkdir, platname, platname, xcode_sdkver)
end
end
if xcode_sysroot then