diff options
| author | Nicolas Viennot <[email protected]> | 2022-03-14 21:59:39 -0400 |
|---|---|---|
| committer | Nicolas Viennot <[email protected]> | 2022-03-15 03:29:13 -0400 |
| commit | 680ed110389fbb99ead8784725a027b499f7aae9 (patch) | |
| tree | 8f7502c2b5b7ef7f83ff2b7bb0c014a1a2e35170 | |
| parent | ff1215c6f9295d960c5111d30f27ca047605414d (diff) | |
Rebuild when the chip definition changes
| -rw-r--r-- | stm32-metapac/build.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/stm32-metapac/build.rs b/stm32-metapac/build.rs index 44c10eced..4a8522557 100644 --- a/stm32-metapac/build.rs +++ b/stm32-metapac/build.rs | |||
| @@ -60,4 +60,13 @@ fn main() { | |||
| 60 | ); | 60 | ); |
| 61 | 61 | ||
| 62 | println!("cargo:rerun-if-changed=build.rs"); | 62 | println!("cargo:rerun-if-changed=build.rs"); |
| 63 | |||
| 64 | // When the stm32-data chip's JSON changes, we must rebuild | ||
| 65 | println!( | ||
| 66 | "cargo:rerun-if-changed={}/chips/{}.json", | ||
| 67 | data_dir.display(), | ||
| 68 | chip_name | ||
| 69 | ); | ||
| 70 | |||
| 71 | println!("cargo:rerun-if-changed={}/registers", data_dir.display()); | ||
| 63 | } | 72 | } |
