Skip to content

Commit 5eb735f

Browse files
committed
fix: disable Android SDK auto-detection for Bazel 9 compatibility
rules_android has repository visibility issues with Bazel 9 when the Android SDK is present. Since we don't use Android, disable detection by setting ANDROID_HOME to empty.
1 parent 4615eef commit 5eb735f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ build --compilation_mode opt
1111
common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
1212

1313
build --repo_env=CC=clang --repo_env=CXX=clang++
14+
# Disable Android SDK auto-detection (we don't use it, and rules_android has Bazel 9 compatibility issues)
15+
build --repo_env=ANDROID_HOME=
1416

1517
# print test output, like sembuild does.
1618
# Set to `errors` if this is too verbose.

0 commit comments

Comments
 (0)