Skip to content

Commit 7d62122

Browse files
committed
Do not emit inner attributes for MSP430 with make_mod option active.
1 parent bb9a5c7 commit 7d62122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generate/device.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
4141
None => None,
4242
};
4343

44-
if config.target == Target::Msp430 {
44+
// make_mod option explicitly disables inner attributes.
45+
if config.target == Target::Msp430 && !config.make_mod {
4546
out.extend(quote! {
4647
#![feature(abi_msp430_interrupt)]
4748
});

0 commit comments

Comments
 (0)