diff options
author | Dan Willemsen <dwillemsen@google.com> | 2022-01-28 13:51:49 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2022-01-28 14:36:51 -0800 |
commit | d99ed415f9346a05fc2e51fc3af43b26947e0f8d (patch) | |
tree | 3a094b5cfcf81a67c328656d8c2f7bb37c5cc555 | |
parent | 6c7da9e1f76d7d62d3387f0863f2b89f068f9be0 (diff) | |
download | bison-d99ed415f9346a05fc2e51fc3af43b26947e0f8d.tar.gz |
Get clang version from soong
Change-Id: I2e2e7dfda3682fa175588e9b2e92f2a72e5a28df
-rwxr-xr-x | android_regen.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android_regen.sh b/android_regen.sh index 824bb75e..6cad17f8 100755 --- a/android_regen.sh +++ b/android_regen.sh @@ -37,7 +37,7 @@ if [ "$1" = "--musl_sysroot" ]; then fi if [ $NAME == "linux_glibc" ]; then - export CC="$ANDROID_BUILD_TOP/prebuilts/clang/host/linux-x86/clang-r370808/bin/clang" + export CC="$ANDROID_BUILD_TOP/prebuilts/clang/host/linux-x86/$(cd $ANDROID_BUILD_TOP; build/soong/scripts/get_clang_version.py)/bin/clang" export CFLAGS="--sysroot=$ANDROID_BUILD_TOP/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot" export LDFLAGS="--sysroot=$ANDROID_BUILD_TOP/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -B$ANDROID_BUILD_TOP/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -L$ANDROID_BUILD_TOP/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -L$ANDROID_BUILD_TOP/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64" fi |