diff options
| author | ruki <[email protected]> | 2021-08-22 22:16:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-08-22 22:16:02 +0800 |
| commit | 0100240746412c71e610d10d21bccf4632294e63 (patch) | |
| tree | 504d63e1e7fd3f5a7f4bf152e038eda5bd5ca6e5 | |
| parent | abc3c7047f2caf9c8a5c50b56f3ad0757cff8956 (diff) | |
improve metal rule
| -rw-r--r-- | xmake/rules/xcode/metal/xmake.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/rules/xcode/metal/xmake.lua b/xmake/rules/xcode/metal/xmake.lua index 7279e26a6..965310c98 100644 --- a/xmake/rules/xcode/metal/xmake.lua +++ b/xmake/rules/xcode/metal/xmake.lua @@ -73,6 +73,12 @@ rule("xcode.metal") airtarget = airtarget .. "-simulator" end table.insert(argv, airtarget) + elseif target:is_plat("appletvos") then + local airtarget = airarch .. "-apple-tvos" .. target_minver + if target:is_arch("x86_64", "i386") then + airtarget = airtarget .. "-simulator" + end + table.insert(argv, airtarget) end end if xcode_sysroot then |
