Skip to content

Commit 79c8903

Browse files
committed
[Clang] Add ENABLE_LINKER_BUILD_ID to Hurd driver.
This was added for Linux toolchains in rC271692, this patch extends this to the Hurd toolchain. Patch by sthibaul (Samuel Thibault) Differential Revision: https://reviews.llvm.org/D69754
1 parent 009e032 commit 79c8903

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Driver/ToolChains/Hurd.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ Hurd::Hurd(const Driver &D, const llvm::Triple &Triple,
7070
const std::string OSLibDir = getOSLibDir(Triple, Args);
7171
const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot);
7272

73+
#ifdef ENABLE_LINKER_BUILD_ID
74+
ExtraOpts.push_back("--build-id");
75+
#endif
76+
7377
// If we are currently running Clang inside of the requested system root, add
7478
// its parent library paths to those searched.
7579
// FIXME: It's not clear whether we should use the driver's installed

0 commit comments

Comments
 (0)