[clang] 466451c - [clang] Allow the OpenBSD driver to link the libclang_rt.profile library.
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 3 14:18:52 PDT 2021
Author: Frederic Cambus
Date: 2021-09-03T17:18:40-04:00
New Revision: 466451c6616272d8c779618b92b0ae80f394a795
URL: https://github.com/llvm/llvm-project/commit/466451c6616272d8c779618b92b0ae80f394a795
DIFF: https://github.com/llvm/llvm-project/commit/466451c6616272d8c779618b92b0ae80f394a795.diff
LOG: [clang] Allow the OpenBSD driver to link the libclang_rt.profile library.
Differential Revision: https://reviews.llvm.org/D109244
Added:
Modified:
clang/lib/Driver/ToolChains/OpenBSD.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/OpenBSD.cpp b/clang/lib/Driver/ToolChains/OpenBSD.cpp
index 1443d842347b..402ac23521fe 100644
--- a/clang/lib/Driver/ToolChains/OpenBSD.cpp
+++ b/clang/lib/Driver/ToolChains/OpenBSD.cpp
@@ -223,6 +223,8 @@ void openbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend)));
}
+ ToolChain.addProfileRTLibs(Args, CmdArgs);
+
const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath());
C.addCommand(std::make_unique<Command>(JA, *this,
ResponseFileSupport::AtFileCurCP(),
More information about the cfe-commits
mailing list