[clang] Allow the OpenBSD driver to link the libclang_rt.profile library.
authorFrederic Cambus <fred@statdns.com>
Fri, 3 Sep 2021 20:53:36 +0000 (16:53 -0400)
committerBrad Smith <brad@comstyle.com>
Fri, 3 Sep 2021 21:18:40 +0000 (17:18 -0400)
Differential Revision: https://reviews.llvm.org/D109244

clang/lib/Driver/ToolChains/OpenBSD.cpp

index 1443d84..402ac23 100644 (file)
@@ -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(),