about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-06-02 11:14:07 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-06-02 11:14:07 +0530
commit4f5a7440dbab9af7bebf50a2e5764c0d8f88c375 (patch)
treed73be810edd807d5de0949f9ba889a64843dc527
parent7da222886190b8a73a16a3b744ce08269f9af03e (diff)
parentc40866785f6eac48eb00ed19d8e0121968dd72cd (diff)
downloadrust-4f5a7440dbab9af7bebf50a2e5764c0d8f88c375.tar.gz
rust-4f5a7440dbab9af7bebf50a2e5764c0d8f88c375.zip
Rollup merge of #25821 - jooert:remove_build_date, r=brson
Closes #25812.
-rw-r--r--mk/main.mk4
-rw-r--r--src/librustc_driver/lib.rs5
2 files changed, 0 insertions, 9 deletions
diff --git a/mk/main.mk b/mk/main.mk
index de5adfd1297..76189b9c6ae 100644
--- a/mk/main.mk
+++ b/mk/main.mk
@@ -74,9 +74,6 @@ ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT_DIR))),)
 endif
 endif
 
-CFG_BUILD_DATE = $(shell date +%F)
-CFG_VERSION += (built $(CFG_BUILD_DATE))
-
 # Windows exe's need numeric versions - don't use anything but
 # numbers and dots here
 CFG_VERSION_WIN = $(CFG_RELEASE_NUM)
@@ -334,7 +331,6 @@ endif
 ifdef CFG_VER_HASH
 export CFG_VER_HASH
 endif
-export CFG_BUILD_DATE
 export CFG_VERSION
 export CFG_VERSION_WIN
 export CFG_RELEASE
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index d91a26ed4ee..49879b472fe 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -483,10 +483,6 @@ pub fn commit_date_str() -> Option<&'static str> {
     option_env!("CFG_VER_DATE")
 }
 
-pub fn build_date_str() -> Option<&'static str> {
-    option_env!("CFG_BUILD_DATE")
-}
-
 /// Prints version information and returns None on success or an error
 /// message on panic.
 pub fn version(binary: &str, matches: &getopts::Matches) {
@@ -498,7 +494,6 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
         println!("binary: {}", binary);
         println!("commit-hash: {}", unw(commit_hash_str()));
         println!("commit-date: {}", unw(commit_date_str()));
-        println!("build-date: {}", unw(build_date_str()));
         println!("host: {}", config::host_triple());
         println!("release: {}", unw(release_str()));
     }