envsetup.sh: Export LLVM_AOSP_PREBUILTS_VERSION with the current clang version from soong

Needed for KERNEL_CLANG_VERSION if TARGET_KERNEL_CLANG_VERSION hasn't been set by the device config

It's boring to change it on each Google change ...

Change-Id: I1d682611cbf6c60d7ae6227b0b5afde591adf471
This commit is contained in:
micky387
2024-10-12 10:40:41 -04:00
committed by Bruno Martins
parent 40161df056
commit a8b479083d
2 changed files with 4 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ ifneq ($(TARGET_KERNEL_CLANG_VERSION),)
KERNEL_CLANG_VERSION := clang-$(TARGET_KERNEL_CLANG_VERSION)
else
# Use the default version of clang if TARGET_KERNEL_CLANG_VERSION hasn't been set by the device config
KERNEL_CLANG_VERSION := clang-r536225
KERNEL_CLANG_VERSION := $(LLVM_AOSP_PREBUILTS_VERSION)
endif
TARGET_KERNEL_CLANG_PATH ?= $(BUILD_TOP)/prebuilts/clang/host/$(HOST_PREBUILT_TAG)/$(KERNEL_CLANG_VERSION)