build: Update rust toolchain dynamically

Change-Id: Iedcc0ebc7f42f65bd1b9578d92bf101f642dec7e
This commit is contained in:
Nick Reuter
2025-08-24 21:51:32 -05:00
parent 785efb245c
commit 03fac07fe7
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
CLANG_VERSION=$(build/soong/scripts/get_clang_version.py)
export LLVM_AOSP_PREBUILTS_VERSION="${CLANG_VERSION}"
RUST_VERSION=$(grep 'RustDefaultVersion =' build/soong/rust/config/global.go | awk '{print $3}' | awk -F '"' '{print $2}')
export RUST_AOSP_PREBUILTS_VERSION="${RUST_VERSION}"
# check to see if the supplied product is one we can build
function check_product()
{

View File

@@ -104,7 +104,7 @@ else
endif
TARGET_KERNEL_CLANG_PATH ?= $(BUILD_TOP)/prebuilts/clang/host/$(HOST_PREBUILT_TAG)/$(KERNEL_CLANG_VERSION)
TARGET_KERNEL_RUST_VERSION ?= 1.73.0c
TARGET_KERNEL_RUST_VERSION ?= $(RUST_AOSP_PREBUILTS_VERSION)
ifneq ($(USE_CCACHE),)
ifneq ($(CCACHE_EXEC),)