Skip to content

Commit

Permalink
chore: optimize common_version build (#4611)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengys1996 authored Aug 23, 2024
1 parent 2c731c7 commit 3973d6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/version/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ 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",
env!("CARGO_RUSTC_CURRENT_DIR")
);

println!(
"cargo:rustc-env=SOURCE_TIMESTAMP={}",
if let Ok(t) = get_source_time() {
Expand Down

0 comments on commit 3973d6b

Please sign in to comment.