forked from OSchip/llvm-project
[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
This commit is contained in:
parent
009e032634
commit
79c89033fd
|
@ -70,6 +70,10 @@ Hurd::Hurd(const Driver &D, const llvm::Triple &Triple,
|
||||||
const std::string OSLibDir = getOSLibDir(Triple, Args);
|
const std::string OSLibDir = getOSLibDir(Triple, Args);
|
||||||
const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot);
|
const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot);
|
||||||
|
|
||||||
|
#ifdef ENABLE_LINKER_BUILD_ID
|
||||||
|
ExtraOpts.push_back("--build-id");
|
||||||
|
#endif
|
||||||
|
|
||||||
// If we are currently running Clang inside of the requested system root, add
|
// If we are currently running Clang inside of the requested system root, add
|
||||||
// its parent library paths to those searched.
|
// its parent library paths to those searched.
|
||||||
// FIXME: It's not clear whether we should use the driver's installed
|
// FIXME: It's not clear whether we should use the driver's installed
|
||||||
|
|
Loading…
Reference in New Issue