config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add Apple tvOS and watchOS


From: Luis Campos
Subject: [PATCH] Add Apple tvOS and watchOS
Date: Thu, 13 Jul 2023 12:29:18 +0100

These are distinct from "ios". They are also technically Darwin, so while something like "aarch64-apple-darwin" could be used when targeting these, on Apple-silicon based systems there could be cases where `--host` and `--build` have the same value, and a ./configure script may determine that we are not cross building, causing it to try to execute test programs for the target OS that will not run on macOS. 

These are functionally equivalent to iOS, and targets with "-tvos" and "-watchos" are already used by clang.

---
 config.sub                | 2 +-
 testsuite/config-sub.data | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/config.sub b/config.sub
index 9865d6e..aec112b 100755
--- a/config.sub
+++ b/config.sub
@@ -1733,7 +1733,7 @@ case $os in
             | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
             | sym* |  plan9* | psp* | sim* | xray* | os68k* | v88r* \
             | hiux* | abug | nacl* | netware* | windows* \
-            | os9* | macos* | osx* | ios* \
+            | os9* | macos* | osx* | ios* | tvos* | watchos* \
             | mpw* | magic* | mmixware* | mon960* | lnews* \
             | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
             | aos* | aros* | cloudabi* | sortix* | twizzler* \
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index bb19dc2..891b03c 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -96,6 +96,10 @@ arm-unknown-riscos                           arm-unknown-riscos
 arm-zephyr                                     arm-unknown-zephyr
 arm64-apple-darwin20.0.0                       aarch64-apple-darwin20.0.0
 arm64-apple-ios                                        aarch64-apple-ios
+arm64-apple-tvos                               aarch64-apple-tvos
+arm64-apple-tvos10.0.0                         aarch64-apple-tvos10.0.0
+arm64-apple-watchos                                    aarch64-apple-watchos
+arm64-apple-watchos5.0                         aarch64-apple-watchos5.0
 armbe                                          armbe-unknown-none
 armeb-unknown-netbsdelf7.0                     armeb-unknown-netbsdelf7.0

reply via email to

[Prev in Thread] Current Thread [Next in Thread]