summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-10 20:11:56 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-10 20:11:56 +0000
commitdac182450b8b0af200e47341ff464119a0195b6d (patch)
tree34f7720998a13dd7c952c39d4519447407730d8d /llvm/lib/Support/CommandLine.cpp
parentbf2fb95b7c72da676e10cee5618d5cfe46459dd5 (diff)
downloadbcm5719-llvm-dac182450b8b0af200e47341ff464119a0195b6d.tar.gz
bcm5719-llvm-dac182450b8b0af200e47341ff464119a0195b6d.zip
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
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
1 files changed, 2 insertions, 0 deletions
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'
OpenPOWER on IntegriCloud