[clang] b989662 - OpenBSD also needs execinfo
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 3 14:34:05 PDT 2021
Author: Brad Smith
Date: 2021-09-03T17:33:48-04:00
New Revision: b989662eb000efb54b91b8c82d2b2713e2da20fc
URL: https://github.com/llvm/llvm-project/commit/b989662eb000efb54b91b8c82d2b2713e2da20fc
DIFF: https://github.com/llvm/llvm-project/commit/b989662eb000efb54b91b8c82d2b2713e2da20fc.diff
LOG: OpenBSD also needs execinfo
Added:
Modified:
clang/lib/Driver/ToolChains/CommonArgs.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp
index 412d41dbee61b..ca426955b7f9a 100644
--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -779,7 +779,8 @@ void tools::linkSanitizerRuntimeDeps(const ToolChain &TC,
CmdArgs.push_back("-ldl");
// Required for backtrace on some OSes
if (TC.getTriple().isOSFreeBSD() ||
- TC.getTriple().isOSNetBSD())
+ TC.getTriple().isOSNetBSD() ||
+ TC.getTriple().isOSOpenBSD())
CmdArgs.push_back("-lexecinfo");
}
More information about the cfe-commits
mailing list