summaryrefslogtreecommitdiff
path: root/third_party/re2/src/.bazelrc
diff options
context:
space:
mode:
authorCronet Mainline Eng <cronet-mainline-eng+copybara@google.com>2024-02-02 09:37:13 +0000
committerChidera Olibie <colibie@google.com>2024-02-02 09:53:24 +0000
commit5cfdd35118d5a23349255971e97737e32895ec0f (patch)
treef6b803e3a8bbddaf4814d1a43930799c3d7f4d8e /third_party/re2/src/.bazelrc
parentabce8a39488511c10b95ac52d1a3fdd2e886da83 (diff)
downloadcronet-5cfdd35118d5a23349255971e97737e32895ec0f.tar.gz
Cronet 121.0.6167.71: import third_party/re2
Bug: b/322154153 FolderOrigin-RevId: /tmp/copybara-origin/src Change-Id: Ic5f3b7c7578bf4e12b03944d863325abfc88853a
Diffstat (limited to 'third_party/re2/src/.bazelrc')
-rw-r--r--third_party/re2/src/.bazelrc23
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/re2/src/.bazelrc b/third_party/re2/src/.bazelrc
new file mode 100644
index 000000000..540fb5738
--- /dev/null
+++ b/third_party/re2/src/.bazelrc
@@ -0,0 +1,23 @@
+# Copyright 2022 The RE2 Authors. All Rights Reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+# Enable Bzlmod. This will be the default eventually...
+build --enable_bzlmod
+# Enable layering check features. Useful on Clang only.
+build --features=layering_check
+# Enable parse headers features. Enforcing that headers are self-contained.
+build --features=parse_headers
+
+# Abseil requires C++14 at minimum.
+# Previously, the flag was set via `BAZEL_CXXOPTS`. On macOS, we also had to set
+# `BAZEL_USE_CPP_ONLY_TOOLCHAIN` since Bazel wouldn't respect the former without
+# the latter. However, the latter stopped Bazel from using Xcode and `-framework
+# Foundation`, which CCTZ (vendored into Abseil) requires.
+build --enable_platform_specific_config
+build:linux --cxxopt=-std=c++14
+build:macos --cxxopt=-std=c++14
+build:windows --cxxopt=/std:c++14
+
+# Print test logs for failed tests.
+test --test_output=errors