diff options
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs index a4f8ee92d..bcf5a0a38 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -459,6 +459,10 @@ fn main() { println!("cargo:rustc-env=GIT_COMMIT_HASH={}", git_commit_hash()); println!("cargo:rerun-if-env-changed=GIT_COMMIT_HASH"); + println!( + "cargo:rustc-env=GIT_COMMIT_HASH_SHORT={}", + &git_commit_hash()[..7] + ); let ts_version = ts::version(); debug_assert_eq!(ts_version, "5.0.2"); // bump this assertion when it changes |