From 58948051e58e1f82b9b5f01568d83c1180264f2c Mon Sep 17 00:00:00 2001 From: Nikita Strygin Date: Mon, 28 Mar 2022 18:44:17 +0300 Subject: [PATCH] Convert chip name to upper case to fix rebuilds PR #665 made stm32-metapac rebuild when the chip definition was changed. Though it used the lowercase version of the chip name as a filename which probably worked fine on windows with its case-independent filesystem, but was causing constant rebuilds on linux --- stm32-metapac/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm32-metapac/build.rs b/stm32-metapac/build.rs index 5f812130..2b3fca80 100644 --- a/stm32-metapac/build.rs +++ b/stm32-metapac/build.rs @@ -69,7 +69,7 @@ fn main() { println!( "cargo:rerun-if-changed={}/chips/{}.json", data_dir.display(), - chip_name + chip_name.to_uppercase() ); println!("cargo:rerun-if-changed={}/registers", data_dir.display());