[Driver] Only use -lc++ on Fuchsia
authorPetr Hosek <phosek@chromium.org>
Fri, 11 May 2018 20:42:31 +0000 (20:42 +0000)
committerPetr Hosek <phosek@chromium.org>
Fri, 11 May 2018 20:42:31 +0000 (20:42 +0000)
commite857f5af6a739fe45a25dfb495a535eba3d0fcce
tree57062a23f590c4289f8d817a18d7a73f6ae595cc
parentdeba150c2750717bc3c83877f74099c8578e8f30
[Driver] Only use -lc++ on Fuchsia

The fact that libc++ depends on libc++abi and libunwind is an internal
detail that's captured by the libc++.so linker script.

Differential Revision: https://reviews.llvm.org/D46768

llvm-svn: 332138
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/test/Driver/fuchsia.cpp