1*6777b538SAndroid Build Coastguard Worker# Copyright 2022 The RE2 Authors. All Rights Reserved. 2*6777b538SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style 3*6777b538SAndroid Build Coastguard Worker# license that can be found in the LICENSE file. 4*6777b538SAndroid Build Coastguard Worker 5*6777b538SAndroid Build Coastguard Worker# Enable layering check features. Useful on Clang only. 6*6777b538SAndroid Build Coastguard Workerbuild --features=layering_check 7*6777b538SAndroid Build Coastguard Worker# Enable parse headers features. Enforcing that headers are self-contained. 8*6777b538SAndroid Build Coastguard Workerbuild --features=parse_headers 9*6777b538SAndroid Build Coastguard Worker 10*6777b538SAndroid Build Coastguard Worker# Abseil requires C++14 at minimum. 11*6777b538SAndroid Build Coastguard Workerbuild --enable_platform_specific_config 12*6777b538SAndroid Build Coastguard Workerbuild:linux --cxxopt=-std=c++14 13*6777b538SAndroid Build Coastguard Workerbuild:macos --cxxopt=-std=c++14 14*6777b538SAndroid Build Coastguard Workerbuild:windows --cxxopt=/std:c++14 15*6777b538SAndroid Build Coastguard Worker 16*6777b538SAndroid Build Coastguard Worker# Print test logs for failed tests. 17*6777b538SAndroid Build Coastguard Workertest --test_output=errors 18*6777b538SAndroid Build Coastguard Worker 19*6777b538SAndroid Build Coastguard Worker# https://bazel.build/configure/best-practices#bazelrc-file 20*6777b538SAndroid Build Coastguard Workertry-import %workspace%/user.bazelrc 21