From dac182450b8b0af200e47341ff464119a0195b6d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 10 May 2010 20:11:56 +0000 Subject: Add new configure option, --disable-timestamps, intended to turn off anything which would mess up binary/object comparisons. Currently: - Disables 'Built on ...' in 'foo --version'. - Disables timestamps from being embedded into .dir files. llvm-svn: 103423 --- llvm/lib/Support/CommandLine.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index d31f34ed661..ae66110ded6 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -1170,7 +1170,9 @@ public: std::string CPU = sys::getHostCPUName(); if (CPU == "generic") CPU = "(unknown)"; OS << ".\n" +#if (ENABLE_TIMESTAMPS == 1) << " Built " << __DATE__ << " (" << __TIME__ << ").\n" +#endif << " Host: " << sys::getHostTriple() << '\n' << " Host CPU: " << CPU << '\n' << '\n' -- cgit v1.2.3