about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMads Marquart <mads@marquart.dk>2024-04-28 18:11:43 +0200
committerMads Marquart <mads@marquart.dk>2024-04-28 21:31:00 +0200
commit6b488cd3021a7438cb58c11af822e206b05d038d (patch)
tree713fe6bb987464f8ac21d80da83ff321ec8fcf0f
parent214d588a5b5e8bf9adcfa9408fd2b0ebbe3fd734 (diff)
downloadrust-6b488cd3021a7438cb58c11af822e206b05d038d.tar.gz
rust-6b488cd3021a7438cb58c11af822e206b05d038d.zip
Also raise fd limit on tvOS when testing
-rw-r--r--src/tools/compiletest/src/raise_fd_limit.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/raise_fd_limit.rs b/src/tools/compiletest/src/raise_fd_limit.rs
index a4235381beb..218bea68a21 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", target_os = "watchos", target_os = "visionos"))]
+#[cfg(target_vendor = "apple")]
 #[allow(non_camel_case_types)]
 pub unsafe fn raise_fd_limit() {
     use std::cmp;
@@ -50,5 +50,5 @@ pub unsafe fn raise_fd_limit() {
     }
 }
 
-#[cfg(not(any(target_os = "macos", target_os = "ios")))]
+#[cfg(not(target_vendor = "apple"))]
 pub unsafe fn raise_fd_limit() {}