diff options
Diffstat (limited to 'meta/recipes-devtools/rust/rust.inc')
-rw-r--r-- | meta/recipes-devtools/rust/rust.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc index 8d25e7993a..f58aa46444 100644 --- a/meta/recipes-devtools/rust/rust.inc +++ b/meta/recipes-devtools/rust/rust.inc | |||
@@ -13,6 +13,10 @@ DEPENDS:append:class-nativesdk = " nativesdk-rust-llvm" | |||
13 | 13 | ||
14 | S = "${RUSTSRC}" | 14 | S = "${RUSTSRC}" |
15 | 15 | ||
16 | # Use at your own risk, accepted values are stable, beta and nightly | ||
17 | RUST_CHANNEL ?= "stable" | ||
18 | PV .= "${@bb.utils.contains('RUST_CHANNEL', 'stable', '', '-${RUST_CHANNEL}', d)}" | ||
19 | |||
16 | export FORCE_CRATE_HASH="${BB_TASKHASH}" | 20 | export FORCE_CRATE_HASH="${BB_TASKHASH}" |
17 | 21 | ||
18 | RUST_ALTERNATE_EXE_PATH ?= "${STAGING_LIBDIR}/llvm-rust/bin/llvm-config" | 22 | RUST_ALTERNATE_EXE_PATH ?= "${STAGING_LIBDIR}/llvm-rust/bin/llvm-config" |
@@ -116,7 +120,7 @@ python do_configure() { | |||
116 | # [rust] | 120 | # [rust] |
117 | config.add_section("rust") | 121 | config.add_section("rust") |
118 | config.set("rust", "rpath", e(True)) | 122 | config.set("rust", "rpath", e(True)) |
119 | config.set("rust", "channel", e("stable")) | 123 | config.set("rust", "channel", e(d.expand("${RUST_CHANNEL}"))) |
120 | 124 | ||
121 | # Whether or not to optimize the compiler and standard library | 125 | # Whether or not to optimize the compiler and standard library |
122 | config.set("rust", "optimize", e(True)) | 126 | config.set("rust", "optimize", e(True)) |