[PATCH] D45662: OpenBSD add C++ runtime in a driver's standpoint
Dean Michael Berris via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 19 00:01:02 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330310: OpenBSD add C++ runtime in a driver's standpoint (authored by dberris, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D45662?vs=142811&id=143049#toc
Repository:
rL LLVM
https://reviews.llvm.org/D45662
Files:
cfe/trunk/lib/Driver/ToolChains/OpenBSD.cpp
cfe/trunk/lib/Driver/ToolChains/OpenBSD.h
Index: cfe/trunk/lib/Driver/ToolChains/OpenBSD.cpp
===================================================================
--- cfe/trunk/lib/Driver/ToolChains/OpenBSD.cpp
+++ cfe/trunk/lib/Driver/ToolChains/OpenBSD.cpp
@@ -259,6 +259,14 @@
getFilePaths().push_back("/usr/lib");
}
+void OpenBSD::AddCXXStdlibLibArgs(const ArgList &Args,
+ ArgStringList &CmdArgs) const {
+ bool Profiling = Args.hasArg(options::OPT_pg);
+
+ CmdArgs.push_back(Profiling ? "-lc++_p" : "-lc++");
+ CmdArgs.push_back(Profiling ? "-lc++abi_p" : "-lc++abi");
+}
+
Tool *OpenBSD::buildAssembler() const {
return new tools::openbsd::Assembler(*this);
}
Index: cfe/trunk/lib/Driver/ToolChains/OpenBSD.h
===================================================================
--- cfe/trunk/lib/Driver/ToolChains/OpenBSD.h
+++ cfe/trunk/lib/Driver/ToolChains/OpenBSD.h
@@ -58,6 +58,8 @@
bool IsMathErrnoDefault() const override { return false; }
bool IsObjCNonFragileABIDefault() const override { return true; }
bool isPIEDefault() const override { return true; }
+ void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
+ llvm::opt::ArgStringList &CmdArgs) const override;
unsigned GetDefaultStackProtectorLevel(bool KernelOrKext) const override {
return 2;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45662.143049.patch
Type: text/x-patch
Size: 1317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180419/42925b5c/attachment.bin>
More information about the llvm-commits
mailing list