forked from bazelbuild/rules_swift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bazelrc
29 lines (22 loc) · 1.38 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# https://github.com/bazelbuild/stardoc/issues/112
common --incompatible_allow_tags_propagation
# Fail if a glob doesn't match anything (https://github.com/bazelbuild/bazel/issues/8195)
build --incompatible_disallow_empty_glob
build --macos_minimum_os=12.0
# Make sure no warnings slip into the C++ tools we vendor
build --features treat_warnings_as_errors
# The default strategy is worker, which has sandboxing disabled by default,
# which can hide issues with non-hermetic bugs.
build --worker_sandboxing
build --enable_platform_specific_config
build:macos --apple_crosstool_top=@local_config_apple_cc//:toolchain
build:macos --crosstool_top=@local_config_apple_cc//:toolchain
build:macos --host_crosstool_top=@local_config_apple_cc//:toolchain
# TODO: Remove once https://github.com/protocolbuffers/protobuf/commit/7bb756c1cc580380c689a9141b27e20c7a5d95f3 is in a release
build --per_file_copt="external/.*protobuf.*/src/google/protobuf/stubs/strutil.cc@-Wno-deprecated-declarations"
# TODO: Use --host_per_file_copt here once we drop bazel 5.x
build --host_cxxopt="-Wno-deprecated-declarations"
# TODO: Remove once https://github.com/protocolbuffers/protobuf/commit/85225b83c3386a282bf1e51f1be8bd2ad0bc45d0 is in a release
build --per_file_copt="external/.*protobuf.*/.*.cc@-Wno-unused-function"
# TODO: Use --host_per_file_copt here once we drop bazel 5.x
build --host_cxxopt="-Wno-unused-function"