[libc++] Add missing link-time dependencies to the benchmarks
authorLouis Dionne <ldionne@apple.com>
Tue, 8 Oct 2019 14:28:56 +0000 (14:28 +0000)
committerLouis Dionne <ldionne@apple.com>
Tue, 8 Oct 2019 14:28:56 +0000 (14:28 +0000)
commitcf3ab6d96c3e9477b05bbbe8b525151320e96d71
treee0d6074a77a73a3cbe43631baa24778f86fcf774
parentaca5d395d541b4adb9a9808984da24044e0b4ac7
[libc++] Add missing link-time dependencies to the benchmarks

Since the benchmarks build with -nostdlib, they need to manually link
against some system libraries that are used by the benchmarks and the
GoogleBenchmark library itself.

Previously, we'd rely on the fact that these libraries were linked
through the PUBLIC dependencies of cxx_shared/cxx_static. However,
if we were to make these dependencies PRIVATE (as they should be
because they are implementation details of libc++), the benchmarks
would fail to link. This commit remediates that.

llvm-svn: 374053
libcxx/benchmarks/CMakeLists.txt