From 72d102d94c45b201759aa2460bea431a1629b05c Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 27 Dec 2022 10:35:50 +0100 Subject: [PATCH] Fix rust modules rebuild (previously ignores changes in cargo config.toml) This leads to the problem when you switch compiler flags, for example: $ cmake -DSANITIZE=memory .. $ ninja $ cmake -DSANITIZE= .. $ ninja And this leads to: ld.lld-15: error: undefined symbol: __msan_init >>> referenced by lib.rs.cc >>> lib.rs.o:(msan.module_ctor) in archive rust/skim/RelWithDebInfo/lib_ch_rust_skim_rust.a Reported-by: @alexey-milovidov Signed-off-by: Azat Khuzhin --- rust/skim/build.rs.in | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/skim/build.rs.in b/rust/skim/build.rs.in index 0135c93222f..f0dd49e4130 100644 --- a/rust/skim/build.rs.in +++ b/rust/skim/build.rs.in @@ -5,4 +5,5 @@ fn main() { } build.compile("skim"); println!("cargo:rerun-if-changed=src/lib.rs"); + println!("cargo:rerun-if-changed=.cargo/config.toml"); }