MASK behind cfg

This commit is contained in:
Per Lindgren 2022-04-14 11:33:26 +02:00
parent c6231d81d8
commit 33174ac65b
3 changed files with 63 additions and 1 deletions

View file

@ -135,6 +135,7 @@ pub fn codegen(
let mask_arr: Vec<_> = mask_arr.iter().map(|(_, v)| v).collect();
mod_app.push(quote!(
#[cfg(not(armv7m))]
const MASKS: [u32; 3] = [#(#mask_arr),*];
));