Skip to content

Commit

Permalink
Do not emit inner attributes for MSP430 with make_mod option active.
Browse files Browse the repository at this point in the history
  • Loading branch information
cr1901 committed Nov 11, 2024
1 parent bb9a5c7 commit 7d62122
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generate/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
None => None,
};

if config.target == Target::Msp430 {
// make_mod option explicitly disables inner attributes.
if config.target == Target::Msp430 && !config.make_mod {
out.extend(quote! {
#![feature(abi_msp430_interrupt)]
});
Expand Down

0 comments on commit 7d62122

Please sign in to comment.