Disable compile sandboxing, add global incl const
These two changes facilitate more soong-like include handling in cc
libraries, which will help us sprint towards building bionic in mixed
builds.
Test: mixed_libc.sh and bp2build.sh ci scripts
Change-Id: If2d08f9a20f9d6faa405ae73cb8d28469891643f
diff --git a/common.bazelrc b/common.bazelrc
index d0091c6..07e3053 100644
--- a/common.bazelrc
+++ b/common.bazelrc
@@ -24,6 +24,11 @@
# Disable local cpp toolchain detection, as it is explicitly declared in AOSP.
build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
+# Disable sandboxing for CppCompile actions, as headers are not fully specified.
+# TODO(b/186116353): This is a temporary fix, as appropriately-sandboxed actions
+# are a long term goal.
+build --strategy=CppCompile=standalone
+
# Enable building targets in //external:__subpackages__.
common --experimental_sibling_repository_layout
common --experimental_disable_external_package