diff options
| -rw-r--r-- | meta/recipes-devtools/rust/rust_1.75.0.bb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/recipes-devtools/rust/rust_1.75.0.bb b/meta/recipes-devtools/rust/rust_1.75.0.bb index c33f31d261..76e1fe2d84 100644 --- a/meta/recipes-devtools/rust/rust_1.75.0.bb +++ b/meta/recipes-devtools/rust/rust_1.75.0.bb | |||
| @@ -70,10 +70,6 @@ addtask do_test_compile after do_configure do_rust_gen_targets | |||
| 70 | do_rust_setup_snapshot[dirs] += "${WORKDIR}/rust-snapshot" | 70 | do_rust_setup_snapshot[dirs] += "${WORKDIR}/rust-snapshot" |
| 71 | do_rust_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER" | 71 | do_rust_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER" |
| 72 | 72 | ||
| 73 | # there is a need to enable some more rust tools for the project | ||
| 74 | # We can extend a list of more tools via this variable | ||
| 75 | RUST_ENABLE_EXTRA_TOOLS ?= "rust-demangler" | ||
| 76 | |||
| 77 | python do_configure() { | 73 | python do_configure() { |
| 78 | import json | 74 | import json |
| 79 | import configparser | 75 | import configparser |
| @@ -145,7 +141,7 @@ python do_configure() { | |||
| 145 | config.add_section("build") | 141 | config.add_section("build") |
| 146 | config.set("build", "submodules", e(False)) | 142 | config.set("build", "submodules", e(False)) |
| 147 | config.set("build", "docs", e(False)) | 143 | config.set("build", "docs", e(False)) |
| 148 | config.set("build", "tools", e(d.getVar("RUST_ENABLE_EXTRA_TOOLS").split())) | 144 | config.set("build", "tools", ["rust-demangler",]) |
| 149 | 145 | ||
| 150 | rustc = d.expand("${WORKDIR}/rust-snapshot/bin/rustc") | 146 | rustc = d.expand("${WORKDIR}/rust-snapshot/bin/rustc") |
| 151 | config.set("build", "rustc", e(rustc)) | 147 | config.set("build", "rustc", e(rustc)) |
