Index: tools/clang/scripts/update.sh |
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh |
index 369b1c90a2c919e52d24c752ec425ca7f86ad0ec..7c60472c5932707635c50fe584cd13c430b70f92 100755 |
--- a/tools/clang/scripts/update.sh |
+++ b/tools/clang/scripts/update.sh |
@@ -156,6 +156,11 @@ if [[ -n ${LLVM_FORCE_HEAD_REVISION:-''} ]]; then |
# Skip local patches when using HEAD: they probably don't apply anymore. |
with_patches= |
+ if ! [[ "$GYP_DEFINES" =~ .*OS=android.* ]]; then |
+ # Only build the Android ASan rt when targetting Android. |
+ with_android= |
+ fi |
+ |
echo "LLVM_FORCE_HEAD_REVISION was set; using r${CLANG_REVISION}" |
fi |