[libcxx-commits] [libcxx] 237e905 - [libc++][Docs] Update benchmark doc wrt monorepo

Shivam Gupta via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 1 19:07:03 PDT 2021


Author: Shivam Gupta
Date: 2021-10-02T07:35:32+05:30
New Revision: 237e9059f781d4c07ba347fa89d371346b57db44

URL: https://github.com/llvm/llvm-project/commit/237e9059f781d4c07ba347fa89d371346b57db44
DIFF: https://github.com/llvm/llvm-project/commit/237e9059f781d4c07ba347fa89d371346b57db44.diff

LOG: [libc++][Docs] Update benchmark doc wrt monorepo

Seems this section is not updated since we have transited to llvm-project monorepo.
At the start, we build libcxx under monorepo configuration but later try to make the separate configuration for libcxx build
and running benchmark.

Reviewed By: ldionne, #libc

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

Added: 
    

Modified: 
    libcxx/docs/TestingLibcxx.rst

Removed: 
    


################################################################################
diff  --git a/libcxx/docs/TestingLibcxx.rst b/libcxx/docs/TestingLibcxx.rst
index ddb8a6d09b570..b5c7ae89c0ad8 100644
--- a/libcxx/docs/TestingLibcxx.rst
+++ b/libcxx/docs/TestingLibcxx.rst
@@ -227,12 +227,11 @@ An example build would look like:
 .. code-block:: bash
 
   $ cd build
-  $ cmake [options] <path to libcxx sources>
-  $ make cxx-benchmarks
+  $ ninja cxx-benchmarks
 
 This will build all of the benchmarks under ``<libcxx-src>/benchmarks`` to be
 built against the just-built libc++. The compiled tests are output into
-``build/benchmarks``.
+``build/projects/libcxx/benchmarks``.
 
 The benchmarks can also be built against the platforms native standard library
 using the ``-DLIBCXX_BUILD_BENCHMARKS_NATIVE_STDLIB=ON`` CMake option. This
@@ -255,8 +254,7 @@ For example:
 
 .. code-block:: bash
 
-  $ cd build/benchmarks
-  $ make cxx-benchmarks
+  $ cd build/projects/libcxx/benchmarks
   $ ./algorithms.libcxx.out # Runs all the benchmarks
   $ ./algorithms.libcxx.out --benchmark_filter=BM_Sort.* # Only runs the sort benchmarks
 


        


More information about the libcxx-commits mailing list