diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-06-18 10:31:31 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-06-18 10:31:31 +0200 |
| commit | 9897728709528a02545523bea72576abce89dc4c (patch) | |
| tree | 49619bfb8e3e09cccbc9c2bd1854abfe1618c8fd /macros/src/codegen/resources.rs | |
| parent | 81275bfa4f41e2066770087f3a33cad4227eab41 (diff) | |
add homogeneous multi-core support
Diffstat (limited to 'macros/src/codegen/resources.rs')
| -rw-r--r-- | macros/src/codegen/resources.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/macros/src/codegen/resources.rs b/macros/src/codegen/resources.rs index 2dd10ea..2425681 100644 --- a/macros/src/codegen/resources.rs +++ b/macros/src/codegen/resources.rs @@ -33,7 +33,13 @@ pub fn codegen( } => util::cfg_core(*core, app.args.cores), // shared `static`s and cross-initialized resources need to be in `.shared` memory - _ => Some(quote!(#[rtfm::export::shared])), + _ => { + if cfg!(feature = "heterogeneous") { + Some(quote!(#[rtfm::export::shared])) + } else { + None + } + } }; let (ty, expr) = if let Some(expr) = expr { |
