Skip to content

Commit

Permalink
Create a dummy .git file so that our VERSION is used
Browse files Browse the repository at this point in the history
Fixes tikv#76
  • Loading branch information
espindola committed Mar 28, 2024
1 parent 8029693 commit 08a6178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jemalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ fn main() {
.expect("failed to copy config file to OUT_DIR");
}

// Create a dummy .git file so that 'git describe' fails and
// configure uses the VERSION file we provide.
fs::File::create(build_dir.join(".git")).expect("failed to create a dummy .git file");

// Run configure:
let configure = build_dir.join("configure");
let mut cmd = Command::new("sh");
Expand Down

0 comments on commit 08a6178

Please sign in to comment.