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 a371c1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

- Fix MSP430 PAC inner attribute generation when used with the `-m` switch.

## [v0.34.0] - 2024-11-05

- Revert #711
Expand Down
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 a371c1e

Please sign in to comment.