diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-04-02 22:23:43 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-08 15:49:17 +0100 |
commit | e11fc01d7b0857d49d304f432d68dd7368055b08 (patch) | |
tree | c55c144600e09ee71ab7061a44be6ded0d6530bc /meta/recipes-devtools | |
parent | f42a153439b1de2c2a26184de9a3ea6f5f502fb8 (diff) | |
download | poky-e11fc01d7b0857d49d304f432d68dd7368055b08.tar.gz |
rust-llvm: Disable benchmarks by cmake options
Drop patch to exclusively disable it in code
It seems to be fixed upstream [1]
[1] https://github.com/rust-lang/cmake-rs/pull/158
(From OE-Core rev: 60b4b0808a3b961917ed8abe16b9f7df2a311952)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/rust/rust-llvm/0003-llvm-fix-include-benchmarks.patch | 25 | ||||
-rw-r--r-- | meta/recipes-devtools/rust/rust-llvm_1.85.1.bb | 2 |
2 files changed, 1 insertions, 26 deletions
diff --git a/meta/recipes-devtools/rust/rust-llvm/0003-llvm-fix-include-benchmarks.patch b/meta/recipes-devtools/rust/rust-llvm/0003-llvm-fix-include-benchmarks.patch deleted file mode 100644 index ff31c0bc32..0000000000 --- a/meta/recipes-devtools/rust/rust-llvm/0003-llvm-fix-include-benchmarks.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | Subject: LLVM_INCLUDE_BENCHMARKS with llvm 14.0.1 failing to build | ||
2 | |||
3 | https://github.com/llvm/llvm-project/issues/54941 | ||
4 | |||
5 | The LLVM_INCLUDE_BENCHMARKS is turned OFF to fix the build error as | ||
6 | per the discussions in the above link. We will work on the issue and | ||
7 | replace the workaround with actual fix once committed in LLVM. | ||
8 | |||
9 | Please refer the following link for more discussions on the issue:- | ||
10 | https://github.com/rust-lang/rust/issues/96054 | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Pgowda <pgowda.cve@gmail.com> | ||
14 | |||
15 | --- a/llvm/CMakeLists.txt 2022-04-22 00:45:30.543445478 -0700 | ||
16 | +++ b/llvm/CMakeLists.txt 2022-04-22 00:45:42.095232974 -0700 | ||
17 | @@ -615,7 +615,7 @@ option(LLVM_INCLUDE_GO_TESTS "Include th | ||
18 | |||
19 | option(LLVM_BUILD_BENCHMARKS "Add LLVM benchmark targets to the list of default | ||
20 | targets. If OFF, benchmarks still could be built using Benchmarks target." OFF) | ||
21 | -option(LLVM_INCLUDE_BENCHMARKS "Generate benchmark targets. If OFF, benchmarks can't be built." ON) | ||
22 | +option(LLVM_INCLUDE_BENCHMARKS "Generate benchmark targets. If OFF, benchmarks can't be built." OFF) | ||
23 | |||
24 | option (LLVM_BUILD_DOCS "Build the llvm documentation." OFF) | ||
25 | option (LLVM_INCLUDE_DOCS "Generate build targets for llvm documentation." ON) | ||
diff --git a/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb b/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb index 12d7b2f181..2ba37f0784 100644 --- a/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb +++ b/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb | |||
@@ -10,7 +10,6 @@ require rust-source.inc | |||
10 | 10 | ||
11 | SRC_URI += "file://0002-llvm-allow-env-override-of-exe-path.patch;striplevel=2 \ | 11 | SRC_URI += "file://0002-llvm-allow-env-override-of-exe-path.patch;striplevel=2 \ |
12 | file://0001-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch;striplevel=2 \ | 12 | file://0001-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch;striplevel=2 \ |
13 | file://0003-llvm-fix-include-benchmarks.patch;striplevel=2 \ | ||
14 | " | 13 | " |
15 | 14 | ||
16 | S = "${RUSTSRC}/src/llvm-project/llvm" | 15 | S = "${RUSTSRC}/src/llvm-project/llvm" |
@@ -50,6 +49,7 @@ EXTRA_OECMAKE = " \ | |||
50 | -DLLVM_INCLUDE_EXAMPLES=OFF \ | 49 | -DLLVM_INCLUDE_EXAMPLES=OFF \ |
51 | -DLLVM_BUILD_TESTS=OFF \ | 50 | -DLLVM_BUILD_TESTS=OFF \ |
52 | -DLLVM_INCLUDE_TESTS=OFF \ | 51 | -DLLVM_INCLUDE_TESTS=OFF \ |
52 | -DLLVM_INCLUDE_BENCHMARKS=OFF \ | ||
53 | -DLLVM_TARGET_ARCH=${TARGET_ARCH} \ | 53 | -DLLVM_TARGET_ARCH=${TARGET_ARCH} \ |
54 | -DCMAKE_INSTALL_PREFIX:PATH=${libdir}/llvm-rust \ | 54 | -DCMAKE_INSTALL_PREFIX:PATH=${libdir}/llvm-rust \ |
55 | " | 55 | " |