Put the implicit memory.x behind a memory_x feature on embassy-stm32.

This commit is contained in:
Bob McWhirter
2021-08-02 13:21:30 -04:00
parent 3a00a1dba7
commit 5f9447abb4
7 changed files with 19 additions and 3 deletions

View File

@ -17,6 +17,7 @@ regex = "1.5.4"
[features]
rt = ["cortex-m-rt/device"]
memory_x = []
# BEGIN GENERATED FEATURES
# Generated by gen_features.py. DO NOT EDIT.

View File

@ -27,5 +27,13 @@ fn main() {
out_dir.display(),
chip_name.to_ascii_lowercase()
);
#[cfg(feature = "memory_x")]
println!(
"cargo:rustc-link-search={}/src/chips/{}/memory_x/",
out_dir.display(),
chip_name.to_ascii_lowercase()
);
println!("cargo:rerun-if-changed=build.rs");
}