Set the default --platforms value to //build/bazel/platforms:android_target.
This platform relies on product config / soong.variables injected into
the build via @soong_injection, and thus makes the bazel build dependent
on lunch.
Test: presubmits
Test: lunch aosp_arm; b build //bionic/...
Test: lunch aosp_x86; b build //bionic/...
Change-Id: I54f9bf28cdd964facceeea858b295e34945a26d4
diff --git a/common.bazelrc b/common.bazelrc
index 4f21317..2ed712d 100644
--- a/common.bazelrc
+++ b/common.bazelrc
@@ -1,9 +1,9 @@
# Platforms and toolchains for AOSP.
#
-# Set default target platform for builds to android_arm because the default lunch target is aosp_arm.
-build --platforms //build/bazel/platforms:android_arm
+# Set default target platform for builds to rely on product config's arch and os variables
+build --platforms //build/bazel/platforms:android_target
-# # Use toolchain resolution to find the cc toolchain.
+# Use toolchain resolution to find the cc toolchain.
build --incompatible_enable_cc_toolchain_resolution
# Ensure that the host_javabase always use @local_jdk, the checked-in JDK.