Skip to content

Commit

Permalink
Omit CPU type from man page
Browse files Browse the repository at this point in the history
When a reproducible build is wanted,
we should not add the build CPU type to man pages like ldmd2.1

See https://reproducible-builds.org/ for why this is matters.
  • Loading branch information
bmwiedemann committed Aug 11, 2018
1 parent dd79aaa commit 7c03f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/main.cpp
Expand Up @@ -112,7 +112,7 @@ void printVersion(llvm::raw_ostream &OS) {
#endif
OS << " Default target: " << llvm::sys::getDefaultTargetTriple() << "\n";
std::string CPU = llvm::sys::getHostCPUName();
if (CPU == "generic") {
if (CPU == "generic" || getenv("SOURCE_DATE_EPOCH")) {
CPU = "(unknown)";
}
OS << " Host CPU: " << CPU << "\n";
Expand Down

0 comments on commit 7c03f84

Please sign in to comment.