[PATCH] D54724: [Driver] Automatically include C++ library dependencies

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 19 14:13:32 PST 2018


phosek created this revision.
Herald added subscribers: cfe-commits, jfb, srhines, emaste.

Existing drivers already include -lm as C++ library dependency, but
that alone is not sufficient when statically linking the C++ library.
To handle that case, we introduce a new method addCXXStdlibLinkDeps
which should automatically include all C++ library dependencies.


Repository:
  rC Clang

https://reviews.llvm.org/D54724

Files:
  clang/lib/Driver/ToolChains/CommonArgs.cpp
  clang/lib/Driver/ToolChains/CommonArgs.h
  clang/lib/Driver/ToolChains/DragonFly.cpp
  clang/lib/Driver/ToolChains/FreeBSD.cpp
  clang/lib/Driver/ToolChains/Fuchsia.cpp
  clang/lib/Driver/ToolChains/Gnu.cpp
  clang/lib/Driver/ToolChains/Hexagon.cpp
  clang/lib/Driver/ToolChains/OpenBSD.cpp
  clang/lib/Driver/ToolChains/PS4CPU.cpp
  clang/test/Driver/fuchsia.cpp
  clang/test/Driver/linux-ld.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54724.174681.patch
Type: text/x-patch
Size: 8294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181119/b135d15e/attachment.bin>


More information about the cfe-commits mailing list