diff options
| author | Kirill Bobyrev <kbobyrev.opensource@gmail.com> | 2018-08-28 09:42:41 +0000 |
|---|---|---|
| committer | Kirill Bobyrev <kbobyrev.opensource@gmail.com> | 2018-08-28 09:42:41 +0000 |
| commit | 0addd170ab0880941fa4089c2717f3f3a0e4e25a (patch) | |
| tree | 71d7a249b508800e1be898aa7cb789d4ed7c8f2b /llvm/docs/CMake.rst | |
| parent | 0c4b84e2df541b42238b1e15d2abb5ee4b262402 (diff) | |
| download | bcm5719-llvm-0addd170ab0880941fa4089c2717f3f3a0e4e25a.tar.gz bcm5719-llvm-0addd170ab0880941fa4089c2717f3f3a0e4e25a.zip | |
Pull google/benchmark library to the LLVM tree
This patch pulls google/benchmark v1.4.1 into the LLVM tree so that any
project could use it for benchmark generation. A dummy benchmark is
added to `llvm/benchmarks/DummyYAML.cpp` to validate the correctness of
the build process.
The current version does not utilize LLVM LNT and LLVM CMake
infrastructure, but that might be sufficient for most users. Two
introduced CMake variables:
* `LLVM_INCLUDE_BENCHMARKS` (`ON` by default) generates benchmark
targets
* `LLVM_BUILD_BENCHMARKS` (`OFF` by default) adds generated
benchmark targets to the list of default LLVM targets (i.e. if `ON`
benchmarks will be built upon standard build invocation, e.g. `ninja` or
`make` with no specific targets)
List of modifications:
* `BENCHMARK_ENABLE_TESTING` is disabled
* `BENCHMARK_ENABLE_EXCEPTIONS` is disabled
* `BENCHMARK_ENABLE_INSTALL` is disabled
* `BENCHMARK_ENABLE_GTEST_TESTS` is disabled
* `BENCHMARK_DOWNLOAD_DEPENDENCIES` is disabled
Original discussion can be found here:
http://lists.llvm.org/pipermail/llvm-dev/2018-August/125023.html
Reviewed by: dberris, lebedev.ri
Subscribers: ilya-biryukov, ioeric, EricWF, lebedev.ri, srhines,
dschuff, mgorny, krytarowski, fedor.sergeev, mgrang, jfb, llvm-commits
Differential Revision: https://reviews.llvm.org/D50894
llvm-svn: 340809
Diffstat (limited to 'llvm/docs/CMake.rst')
| -rw-r--r-- | llvm/docs/CMake.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst index cbcadc21249..9ed6cb7678f 100644 --- a/llvm/docs/CMake.rst +++ b/llvm/docs/CMake.rst @@ -250,6 +250,12 @@ LLVM-specific variables this option to disable the generation of build targets for the LLVM unit tests. +**LLVM_BUILD_BENCHMARKS**:BOOL + Adds benchmarks to the list of default targets. Defaults to OFF. + +**LLVM_INCLUDE_BENCHMARKS**:BOOL + Generate build targets for the LLVM benchmarks. Defaults to ON. + **LLVM_APPEND_VC_REV**:BOOL Embed version control revision info (svn revision number or Git revision id). The version info is provided by the ``LLVM_REVISION`` macro in |

