diff options
author | Ross Burton <ross.burton@arm.com> | 2023-11-21 14:06:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-23 12:46:42 +0000 |
commit | 84e68041a2b86ea238d621b0381120e15647a58e (patch) | |
tree | e388438cf92c384bb759ef1d298b70e2d15b41a8 /meta/recipes-devtools/rust | |
parent | b7f0164393a2612d741eb9df89e5a3ddda632e75 (diff) | |
download | poky-84e68041a2b86ea238d621b0381120e15647a58e.tar.gz |
rust-llvm: remove python3native dependency
LLVM doesn't actually need a native Python3 as the host Python is
sufficient, but as it then looks at the host for optional Python
dependencies explicitly disable their detection so that rust-llvm
remains deterministic. As this is a minimal LLVM for Rust, we don't
need the optviewer tool.
(From OE-Core rev: c6971d9d9a9d9a83615508d244778ddc89a94b8a)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust')
-rw-r--r-- | meta/recipes-devtools/rust/rust-llvm_1.70.0.bb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rust/rust-llvm_1.70.0.bb b/meta/recipes-devtools/rust/rust-llvm_1.70.0.bb index 09e4c65be3..57bbe79cdf 100644 --- a/meta/recipes-devtools/rust/rust-llvm_1.70.0.bb +++ b/meta/recipes-devtools/rust/rust-llvm_1.70.0.bb | |||
@@ -16,7 +16,7 @@ S = "${RUSTSRC}/src/llvm-project/llvm" | |||
16 | 16 | ||
17 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=8a15a0759ef07f2682d2ba4b893c9afe" | 17 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=8a15a0759ef07f2682d2ba4b893c9afe" |
18 | 18 | ||
19 | inherit cmake python3native | 19 | inherit cmake |
20 | 20 | ||
21 | DEPENDS += "ninja-native rust-llvm-native" | 21 | DEPENDS += "ninja-native rust-llvm-native" |
22 | 22 | ||
@@ -47,6 +47,15 @@ EXTRA_OECMAKE = " \ | |||
47 | -DLLVM_TARGET_ARCH=${TARGET_ARCH} \ | 47 | -DLLVM_TARGET_ARCH=${TARGET_ARCH} \ |
48 | -DCMAKE_INSTALL_PREFIX:PATH=${libdir}/llvm-rust \ | 48 | -DCMAKE_INSTALL_PREFIX:PATH=${libdir}/llvm-rust \ |
49 | " | 49 | " |
50 | |||
51 | # Forcibly disable the detection of these packages as otherwise | ||
52 | # it will look at the host Python install | ||
53 | EXTRA_OECMAKE += "\ | ||
54 | -DPY_PYGMENTS_FOUND=OFF \ | ||
55 | -DPY_PYGMENTS_LEXERS_C_CPP_FOUND=OFF \ | ||
56 | -DPY_YAML_FOUND=OFF \ | ||
57 | " | ||
58 | |||
50 | EXTRA_OECMAKE:append:class-target = "\ | 59 | EXTRA_OECMAKE:append:class-target = "\ |
51 | -DLLVM_BUILD_TOOLS=OFF \ | 60 | -DLLVM_BUILD_TOOLS=OFF \ |
52 | -DLLVM_TABLEGEN=${STAGING_LIBDIR_NATIVE}/llvm-rust/bin/llvm-tblgen \ | 61 | -DLLVM_TABLEGEN=${STAGING_LIBDIR_NATIVE}/llvm-rust/bin/llvm-tblgen \ |