aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingwen Chen <jingwen@google.com>2021-05-12 13:18:56 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-12 13:18:56 +0000
commit49af5db0270697c1cc4b4348db47a88c93c87384 (patch)
treec6592e0415a937b04959e291c45c7bd868ef0259
parent8cd34fb7485f0f933d8854915af845c299473596 (diff)
parentce495ab552548dcc2c34c0746c09e5822edf251f (diff)
downloadbazel-49af5db0270697c1cc4b4348db47a88c93c87384.tar.gz
Enforce no_copts_tokenization for C++ builds. am: fcb0c32440 am: 180f7c5763 am: ce495ab552
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/1705506 Change-Id: I9e67a4c80ae3e171084aa701bb99f74d5c341d33
-rw-r--r--common.bazelrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.bazelrc b/common.bazelrc
index 07e30538..2ed069c3 100644
--- a/common.bazelrc
+++ b/common.bazelrc
@@ -18,6 +18,11 @@ build --experimental_allow_unresolved_symlinks
# Enable usage of cc_shared_library build APIs
build --experimental_cc_shared_library
+# Do not tokenize copts, other than strings that consist of a single Make
+# variable. This prevents the need to double-escape characters like backslashes
+# and quotes in copts.
+build --features no_copts_tokenization
+
# Disable middleman actions
build --noexperimental_enable_aggregating_middleman