Skip to content

Commit

Permalink
fix: incremental compilation always compile the common-version crate (#…
Browse files Browse the repository at this point in the history
…4605)

fix: wrong cargo:rerun
  • Loading branch information
fengys1996 authored Aug 22, 2024
1 parent b9cedf2 commit 3517c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/version/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use build_data::{format_timestamp, get_source_time};
use shadow_rs::{CARGO_METADATA, CARGO_TREE};

fn main() -> shadow_rs::SdResult<()> {
println!("cargo:rerun-if-changed=.git/refs/heads");
println!("cargo:rerun-if-changed=../../../.git/refs/heads");
println!(
"cargo:rustc-env=SOURCE_TIMESTAMP={}",
if let Ok(t) = get_source_time() {
Expand Down

0 comments on commit 3517c13

Please sign in to comment.