mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-02 05:42:15 +00:00
https://github.com/pc2/sus-compiler/releases/tag/v0.3.1 https://github.com/pc2/sus-compiler/releases/tag/v0.3.2 https://github.com/pc2/sus-compiler/releases/tag/v0.3.3 https://github.com/pc2/sus-compiler/releases/tag/v0.3.4 https://github.com/pc2/sus-compiler/releases/tag/v0.3.5 https://github.com/pc2/sus-compiler/releases/tag/v0.3.6 https://github.com/pc2/sus-compiler/releases/tag/v0.3.7
23 lines
862 B
Diff
23 lines
862 B
Diff
diff --git a/build.rs b/build.rs
|
|
index d7c26bb..ffaed27 100644
|
|
--- a/build.rs
|
|
+++ b/build.rs
|
|
@@ -22,16 +22,8 @@ fn main() -> Result<(), String> {
|
|
} else {
|
|
" without LSP Support"
|
|
};
|
|
- let git_hash = std::process::Command::new("git")
|
|
- .args(["rev-parse", "HEAD"])
|
|
- .output()
|
|
- .unwrap();
|
|
- let git_hash = String::from_utf8(git_hash.stdout).unwrap();
|
|
- let git_hash = git_hash.trim();
|
|
- let build_date = chrono::Local::now().format("%Y-%m-%d_%H:%M:%S");
|
|
-
|
|
println!(
|
|
- "cargo:rustc-env=EXTRA_VERSION_STRING= ({git_hash}) built at {build_date}{build_features}"
|
|
+ "cargo:rustc-env=EXTRA_VERSION_STRING= (@GIT_HASH@) committed at @GIT_DATE@{build_features}"
|
|
);
|
|
} else {
|
|
println!("cargo:rustc-env=EXTRA_VERSION_STRING=");
|