Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c4e86b6e authored by Michael Bestas's avatar Michael Bestas
Browse files

build: Fix sourcing envsetup from anywhere

Change-Id: Id1ee24e89a554c8de42366f9f0f5da03d3c86143
parent 5d460828
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
CLANG_VERSION=$(build/soong/scripts/get_clang_version.py)
CLANG_VERSION=$(${ANDROID_BUILD_TOP}/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}')
RUST_VERSION=$(grep 'RustDefaultVersion =' ${ANDROID_BUILD_TOP}/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