We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7676b83 commit dbd0f6cCopy full SHA for dbd0f6c
cortex-m-rt/macros/src/lib.rs
@@ -266,7 +266,8 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream {
266
#(#attrs)*
267
#[doc(hidden)]
268
#[export_name = "HardFault"]
269
- #[link_section = ".HardFault.user"]
+ #[cfg_attr(target_os = "macos", link_section = ".HardFault,user")]
270
+ #[cfg_attr(not(target_os = "macos"), link_section = ".HardFault.user")]
271
pub unsafe extern "C" fn #tramp_ident(frame: &::cortex_m_rt::ExceptionFrame) {
272
#ident(frame)
273
}
0 commit comments