about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorVladimir Michael Eatwell <dimir@fb.com>2022-03-23 14:54:58 +0000
committerVladimir Michael Eatwell <dimir@fb.com>2022-06-13 16:08:53 +0100
commitdc5c61028ab9e0a1985ccc913fcab88b5f50efb6 (patch)
tree05fd841ede807eb516607988f0e449206fb07c29 /src/tools/compiletest
parentc84594661c1b51feb539b479b58bb551fcf8e19a (diff)
downloadrust-dc5c61028ab9e0a1985ccc913fcab88b5f50efb6.tar.gz
rust-dc5c61028ab9e0a1985ccc913fcab88b5f50efb6.zip
Add Apple WatchOS compile targets
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/raise_fd_limit.rs2
-rw-r--r--src/tools/compiletest/src/util.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/raise_fd_limit.rs b/src/tools/compiletest/src/raise_fd_limit.rs
index faded7c8024..bc2946e2c13 100644
--- a/src/tools/compiletest/src/raise_fd_limit.rs
+++ b/src/tools/compiletest/src/raise_fd_limit.rs
@@ -4,7 +4,7 @@
 /// on the number of cores available.
 ///
 /// This fixes issue #7772.
-#[cfg(any(target_os = "macos", target_os = "ios"))]
+#[cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos"))]
 #[allow(non_camel_case_types)]
 pub unsafe fn raise_fd_limit() {
     use std::cmp;
diff --git a/src/tools/compiletest/src/util.rs b/src/tools/compiletest/src/util.rs
index bed509d77be..215af347f17 100644
--- a/src/tools/compiletest/src/util.rs
+++ b/src/tools/compiletest/src/util.rs
@@ -31,6 +31,7 @@ const OS_TABLE: &[(&str, &str)] = &[
     ("redox", "redox"),
     ("sgx", "sgx"),
     ("solaris", "solaris"),
+    ("watchos", "watchos"),
     ("win32", "windows"),
     ("windows", "windows"),
     ("vxworks", "vxworks"),