Skip to content

Commit b5b69b1

Browse files
Update library/std/src/sys/pal/unix/weak.rs
Co-authored-by: Jubilee <[email protected]>
1 parent 88f35de commit b5b69b1

File tree

1 file changed

+1
-7
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+1
-7
lines changed

library/std/src/sys/pal/unix/weak.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,7 @@ pub(crate) macro weak {
4949
}
5050

5151
// On non-ELF targets, use the dlsym approximation of weak linkage.
52-
#[cfg(any(
53-
target_os = "macos",
54-
target_os = "ios",
55-
target_os = "tvos",
56-
target_os = "watchos",
57-
target_os = "visionos",
58-
))]
52+
#[cfg(target_vendor = "apple")]
5953
pub(crate) use self::dlsym as weak;
6054

6155
pub(crate) struct ExternWeak<F: Copy> {

0 commit comments

Comments
 (0)