Turn On -DLIBCXX_ENABLE_BENCHMARKS by default.
This patch enables the `cxx-benchmarks` target by default. Note that the target
still has to be manually invoked since it isn't included in the default 'make'
rule.
This patch also gets the benchmarks building w/ GCC. The build previously
required the '-stdlib=libc++' flag but upstream patches to Google Benchmark
now allow the library to build w/ libc++ and GCC.
These changes should make the benchmarks easier to build and test.
llvm-svn: 279999
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 8b4a30584a8e34893d3ded7923479bfc89b45f40
diff --git a/docs/BuildingLibcxx.rst b/docs/BuildingLibcxx.rst
index 26fa2a4..219109e 100644
--- a/docs/BuildingLibcxx.rst
+++ b/docs/BuildingLibcxx.rst
@@ -251,7 +251,7 @@
.. option:: LIBCXX_INCLUDE_BENCHMARKS:BOOL
- **Default**: ``OFF``
+ **Default**: ``ON``
Build the libc++ benchmark tests and the Google Benchmark library needed
to support them.