summaryrefslogtreecommitdiff
path: root/.bazelrc
diff options
context:
space:
mode:
authorTizenOpenSource <tizenopensrc@samsung.com>2024-01-22 14:48:59 +0900
committerTizenOpenSource <tizenopensrc@samsung.com>2024-01-22 14:48:59 +0900
commit177079bbaa2fb42cfcea5d2dcd1f4929db1a66f9 (patch)
treeb9a86f41309dd2ee2c9f196180a1b0c9e8a675dd /.bazelrc
parentc7f09d101e3b1f1d6480b117ae886b4e6bbf866b (diff)
downloadre2-upstream.tar.gz
re2-upstream.tar.bz2
re2-upstream.zip
Imported Upstream version 20231101upstream/20231101upstream
Diffstat (limited to '.bazelrc')
-rw-r--r--.bazelrc23
1 files changed, 23 insertions, 0 deletions
diff --git a/.bazelrc b/.bazelrc
new file mode 100644
index 0000000..540fb57
--- /dev/null
+++ b/.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