Skip to content

Commit 74eee32

Browse files
authored
Merge pull request #885 from cr1901/make-mod-inner-fix
Do not emit inner attributes for MSP430 with make_mod option active.
2 parents bb9a5c7 + a371c1e commit 74eee32

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
77

88
## [Unreleased]
99

10+
- Fix MSP430 PAC inner attribute generation when used with the `-m` switch.
11+
1012
## [v0.34.0] - 2024-11-05
1113

1214
- Revert #711

src/generate/device.rs

+2-1
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)