Skip to content

Commit c408667

Browse files
committed
Remove build date from the output of --version
Closes rust-lang#25812.
1 parent a2cf2c6 commit c408667

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

mk/main.mk

-4
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT_DIR))),)
7474
endif
7575
endif
7676

77-
CFG_BUILD_DATE = $(shell date +%F)
78-
CFG_VERSION += (built $(CFG_BUILD_DATE))
79-
8077
# Windows exe's need numeric versions - don't use anything but
8178
# numbers and dots here
8279
CFG_VERSION_WIN = $(CFG_RELEASE_NUM)
@@ -334,7 +331,6 @@ endif
334331
ifdef CFG_VER_HASH
335332
export CFG_VER_HASH
336333
endif
337-
export CFG_BUILD_DATE
338334
export CFG_VERSION
339335
export CFG_VERSION_WIN
340336
export CFG_RELEASE

src/librustc_driver/lib.rs

-5
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,6 @@ pub fn commit_date_str() -> Option<&'static str> {
483483
option_env!("CFG_VER_DATE")
484484
}
485485

486-
pub fn build_date_str() -> Option<&'static str> {
487-
option_env!("CFG_BUILD_DATE")
488-
}
489-
490486
/// Prints version information and returns None on success or an error
491487
/// message on panic.
492488
pub fn version(binary: &str, matches: &getopts::Matches) {
@@ -498,7 +494,6 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
498494
println!("binary: {}", binary);
499495
println!("commit-hash: {}", unw(commit_hash_str()));
500496
println!("commit-date: {}", unw(commit_date_str()));
501-
println!("build-date: {}", unw(build_date_str()));
502497
println!("host: {}", config::host_triple());
503498
println!("release: {}", unw(release_str()));
504499
}

0 commit comments

Comments
 (0)