Skip to content

Commit

Permalink
Also raise fd limit on tvOS when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Apr 28, 2024
1 parent 214d588 commit 6b488cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/compiletest/src/raise_fd_limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {}

0 comments on commit 6b488cd

Please sign in to comment.