diff options
author | Stephen Crane <cranes@google.com> | 2023-02-16 20:10:31 +0000 |
---|---|---|
committer | Stephen Crane <cranes@google.com> | 2023-02-16 20:10:31 +0000 |
commit | 2141c9f80160f13937ead0414a0a350f3d282b47 (patch) | |
tree | d285c1c98864e3b36b63a598c1c3c2d94fd2923c | |
parent | 0ff28862044c6fc63bc27ec369e6a2bb0e25a0f8 (diff) | |
download | aosp-2141c9f80160f13937ead0414a0a350f3d282b47.tar.gz |
scripts: Add env var for clang host lib dir
Adds CLANG_HOST_LIBDIR to point to the host libraries provided with
clang, e.g. libc++.so. Recent versions of the toolchain have migrated to
a new path, so we need to allow this path to be configurable.
Test: build.py
Bug: 269521171
Change-Id: Ica98e00e4d992b3906808c6254d45353c6d4ca91
-rw-r--r-- | scripts/envsetup.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index 553a5e1..2b72747 100644 --- a/scripts/envsetup.sh +++ b/scripts/envsetup.sh @@ -30,6 +30,7 @@ gettop() { export TRUSTY_TOP=$(gettop) export CLANG_BINDIR=${TRUSTY_TOP}/prebuilts/clang/host/linux-x86/clang-r450784e/bin +export CLANG_HOST_LIBDIR=${CLANG_BINDIR}/../lib64 export CLANG_TOOLS_BINDIR=${TRUSTY_TOP}/prebuilts/clang-tools/linux-x86/bin export LINUX_CLANG_BINDIR=${TRUSTY_TOP}/prebuilts/clang/host/linux-x86/clang-r450784e/bin export RUST_BINDIR=${TRUSTY_TOP}/prebuilts/rust/linux-x86/1.65.0/bin |