[libc++][cmake] Improves benchmark build.
authorMark de Wever <koraq@xs4all.nl>
Mon, 8 Nov 2021 17:58:18 +0000 (18:58 +0100)
committerMark de Wever <koraq@xs4all.nl>
Tue, 9 Nov 2021 17:57:44 +0000 (18:57 +0100)
commit3ca520f19f430e38ac7fa82591141305a2679234
treec5b44297048b08223ec73b6a744a96ba8d5fa826
parent194897eccfdd3c0b83ea47586c93bf95976d356f
[libc++][cmake] Improves benchmark build.

The CMake dependencies don't properly list the libc++ headers. When a
libc++ header is modified the affected benchmarks aren't rebuild. This
makes testing benchmarks tricky and may cause accidentally not using the
latest modifications during testing. This change causes CMake to
determine the proper dependencies.

This shouldn't affect the CI build.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D113419
libcxx/benchmarks/CMakeLists.txt