-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.bazelrc
More file actions
18 lines (15 loc) · 770 Bytes
/
.bazelrc
File metadata and controls
18 lines (15 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# C / C++ flags matching nsjail
build --cxxopt=-std=c++20
build --cxxopt=-fno-exceptions
build --copt=-D_GNU_SOURCE
build --copt=-D_FILE_OFFSET_BITS=64
build --linkopt=-Wl,-z,noexecstack
test --test_output=errors
# Silence warnings in upstream C/C++ dependencies
build --per_file_copt=external/protobuf\\+/.*@-Wno-deprecated-declarations
build --host_per_file_copt=external/protobuf\\+/.*@-Wno-deprecated-declarations
build --host_per_file_copt=external/rules_m4\\+\\+.*@-Wno-ignored-attributes
build --host_per_file_copt=external/rules_flex\\+\\+.*@-Wno-pointer-sign,-Wno-misleading-indentation
# Use prebuilt protoc instead of compiling from source
common --incompatible_enable_proto_toolchain_resolution
common --@protobuf//bazel/toolchains:prefer_prebuilt_protoc