|
1 | 1 | https://github.com/rust-lang/rust/issues/96054
|
2 | 2 |
|
3 |
| ---- rustc-1.60.0-src/src/llvm-project/llvm/CMakeLists.txt.orig 2022-04-14 16:59:58.027479056 +0000 |
4 |
| -+++ rustc-1.60.0-src/src/llvm-project/llvm/CMakeLists.txt 2022-04-14 17:01:57.044255205 +0000 |
5 |
| -@@ -1241,23 +1241,6 @@ |
6 |
| - include(InstallRequiredSystemLibraries) |
7 |
| - endif() |
| 3 | +--- rustc-1.65.0-src/src/llvm-project/llvm/CMakeLists.txt |
| 4 | ++++ rustc-1.65.0-src/src/llvm-project/llvm/CMakeLists.txt |
| 5 | +@@ -651,7 +651,7 @@ |
8 | 6 |
|
9 |
| --if (LLVM_INCLUDE_BENCHMARKS) |
10 |
| -- # Override benchmark defaults so that when the library itself is updated these |
11 |
| -- # modifications are not lost. |
12 |
| -- set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Disable benchmark testing" FORCE) |
13 |
| -- set(BENCHMARK_ENABLE_EXCEPTIONS OFF CACHE BOOL "Disable benchmark exceptions" FORCE) |
14 |
| -- set(BENCHMARK_ENABLE_INSTALL OFF CACHE BOOL "Don't install benchmark" FORCE) |
15 |
| -- set(BENCHMARK_DOWNLOAD_DEPENDENCIES OFF CACHE BOOL "Don't download dependencies" FORCE) |
16 |
| -- set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE BOOL "Disable Google Test in benchmark" FORCE) |
17 |
| -- set(BENCHMARK_ENABLE_WERROR ${LLVM_ENABLE_WERROR} CACHE BOOL |
18 |
| -- "Handle -Werror for Google Benchmark based on LLVM_ENABLE_WERROR" FORCE) |
19 |
| -- # Since LLVM requires C++11 it is safe to assume that std::regex is available. |
20 |
| -- set(HAVE_STD_REGEX ON CACHE BOOL "OK" FORCE) |
21 |
| -- add_subdirectory(${LLVM_THIRD_PARTY_DIR}/benchmark |
22 |
| -- ${CMAKE_CURRENT_BINARY_DIR}/third-party/benchmark) |
23 |
| -- add_subdirectory(benchmarks) |
24 |
| --endif() |
25 |
| -- |
26 |
| - if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS) |
27 |
| - add_subdirectory(utils/llvm-locstats) |
28 |
| - endif() |
| 7 | + option(LLVM_BUILD_BENCHMARKS "Add LLVM benchmark targets to the list of default |
| 8 | + targets. If OFF, benchmarks still could be built using Benchmarks target." OFF) |
| 9 | +-option(LLVM_INCLUDE_BENCHMARKS "Generate benchmark targets. If OFF, benchmarks can't be built." ON) |
| 10 | ++option(LLVM_INCLUDE_BENCHMARKS "Generate benchmark targets. If OFF, benchmarks can't be built." OFF) |
| 11 | + |
| 12 | + option (LLVM_BUILD_DOCS "Build the llvm documentation." OFF) |
| 13 | + option (LLVM_INCLUDE_DOCS "Generate build targets for llvm documentation." ON) |
0 commit comments