summaryrefslogtreecommitdiffstats
path: root/debian/patches/u-arm-compiler-builtins-weak-linkage-arm.patch
blob: 530efcebef6d51dc90ec40fd90d8c12b8671a063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 72c872147679096c53cbb49ca670662d05d43110 Mon Sep 17 00:00:00 2001
From: Lokathor <zefria@gmail.com>
Date: Tue, 27 Sep 2022 13:22:45 -0600
Subject: [PATCH] Update macros.rs

---
https://github.com/rust-lang/compiler-builtins/pull/495

 src/macros.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vendor/compiler_builtins/src/macros.rs b/vendor/compiler_builtins/src/macros.rs
index 7d90b7aa..477c2568 100644
--- a/vendor/compiler_builtins/src/macros.rs
+++ b/vendor/compiler_builtins/src/macros.rs
@@ -266,6 +266,7 @@ macro_rules! intrinsics {
         #[cfg(target_arch = "arm")]
         pub mod $alias {
             #[cfg_attr(not(feature = "mangled-names"), no_mangle)]
+            #[cfg_attr(all(not(windows), not(target_vendor="apple")), linkage = "weak")]
             pub extern "aapcs" fn $alias( $($argname: $ty),* ) $(-> $ret)? {
                 super::$name($($argname),*)
             }