1# Copyright 2022 The RE2 Authors. All Rights Reserved. 2# Use of this source code is governed by a BSD-style 3# license that can be found in the LICENSE file. 4 5# Enable Bzlmod. This will be the default eventually... 6build --enable_bzlmod 7# Enable layering check features. Useful on Clang only. 8build --features=layering_check 9# Enable parse headers features. Enforcing that headers are self-contained. 10build --features=parse_headers 11 12# Abseil requires C++14 at minimum. 13# Previously, the flag was set via `BAZEL_CXXOPTS`. On macOS, we also had to set 14# `BAZEL_USE_CPP_ONLY_TOOLCHAIN` since Bazel wouldn't respect the former without 15# the latter. However, the latter stopped Bazel from using Xcode and `-framework 16# Foundation`, which CCTZ (vendored into Abseil) requires. 17build --enable_platform_specific_config 18build:linux --cxxopt=-std=c++14 19build:macos --cxxopt=-std=c++14 20build:windows --cxxopt=/std:c++14 21 22# Print test logs for failed tests. 23test --test_output=errors 24