intrinsics macro: fix non-weak aeabi generation

Signed-off-by: Grant Elbert <grant.elbert@smartthings.com>
This commit is contained in:
Grant Elbert 2023-10-23 15:54:05 -05:00
parent c21462c5e0
commit de2da94c49

View file

@ -369,7 +369,7 @@ macro_rules! intrinsics {
#[cfg(target_arch = "arm")]
pub mod $alias {
#[cfg_attr(not(feature = "mangled-names"), no_mangle)]
#[cfg_attr(any(all(not(windows), not(target_vendor="apple"), feature = "weak-intrinsics")), linkage = "weak")]
#[cfg_attr(any(all(not(windows), not(target_vendor="apple")), feature = "weak-intrinsics"), linkage = "weak")]
pub extern "aapcs" fn $alias( $($argname: $ty),* ) $(-> $ret)? {
super::$name($($argname),*)
}