-
Notifications
You must be signed in to change notification settings - Fork 22
/
.bazelrc
39 lines (33 loc) · 1.5 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
30
31
32
33
34
35
36
37
38
39
# Copyright 2022 Aurora Operations, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Use platforms for compiling C/C++ code.
build --incompatible_enable_cc_toolchain_resolution
# Make git version information available to bazel rules.
build --workspace_status_command=./tools/bin/workspace_status.sh
# Allow the user to switch to various Clang version for compiling everything.
build:clang11 --platform_suffix=clang11
build:clang11 --//build:requested_compiler_flag=clang11
build:clang14 --platform_suffix=clang14
build:clang14 --//build:requested_compiler_flag=clang14
build:gcc10 --platform_suffix=gcc10
build:gcc10 --//build:requested_compiler_flag=gcc10
build:gcc10 --features=static_libstdcxx
# Add a generic alias if the user doesn't care about the exact version.
build:clang --config=clang14
build:gcc --config=gcc10
# Compile with clang by default
build --config=clang14
# Show test output when there are errors.
# Making this true by default significantly improves developer experience.
test --test_output=errors