[PATCH] D69754: [hurd] Add --build-id option when enabled
Samuel Thibault via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 2 14:09:30 PDT 2019
sthibaul created this revision.
sthibaul added a reviewer: kristina.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rC Clang
https://reviews.llvm.org/D69754
Files:
clang/lib/Driver/ToolChains/Hurd.cpp
Index: clang/lib/Driver/ToolChains/Hurd.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Hurd.cpp
+++ clang/lib/Driver/ToolChains/Hurd.cpp
@@ -70,6 +70,10 @@
const std::string OSLibDir = getOSLibDir(Triple, Args);
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
// its parent library paths to those searched.
// FIXME: It's not clear whether we should use the driver's installed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69754.227588.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191102/556fc139/attachment-0001.bin>
More information about the cfe-commits
mailing list