From 65bd1113ef553449f1938b2705be161af0c8ed87 Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Mon, 5 Aug 2024 15:44:23 -0700 Subject: [PATCH] Mark symbols as weak on Windows and Apple as well --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index 42c83ee55..5b94f81b6 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -467,7 +467,7 @@ macro_rules! intrinsics { mod $name { $(#[$($attr)*])* #[no_mangle] - #[cfg_attr(all(not(windows), not(target_vendor = "apple")), linkage = "weak")] + #[linkage = "weak"] $(unsafe $($empty)?)? extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? { super::$name($($argname),*) }