forked from google/agi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
62 lines (48 loc) · 2.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright (C) 2018 Google 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.
# Bazel RC file for the AGI build.
# Import any user defined rules.
try-import %workspace%/user.bazelrc
# Adjusting defaults to favour developer workflows
build --verbose_failures
test --test_output=errors
query --nohost_deps --noimplicit_deps
# Android special build configurations
build --fat_apk_cpu armeabi-v7a,arm64-v8a,x86
# Default version defines
build --define AGI_BUILD_NUMBER=0 --define AGI_BUILD_SHA=developer
# Without this, bazel wraps each cc_library with "--whole-archive" flags for the
# linker when building the dynamic library, which leads to over-bloated libs.
build --incompatible_remove_legacy_whole_archive
# Sets the go +build tags to use during compilation.
build --define gotags=analytics,crashreporting
# Disable c-ares for grpc.
build --define grpc_no_ares=true
build --features=-debug_prefix_map_pwd_is_dot
# Config used by the build servers to dump symbols.
build:symbols --copt="-g"
# Config that will exclude Android from the //:pkg target.
build:nodroid --define NO_ANDROID=1
# Tests requiring a GPU fail in the sandbox.
test --strategy TestRunner=standalone --test_env DISPLAY
common:fuchsia_arm64 --crosstool_top=@fuchsia_clang//:toolchain --cpu=aarch64 --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
common:fuchsia_arm64 --cxxopt="-Wno-extra-semi"
common:fuchsia_arm64 --copt="-Wno-deprecated-non-prototype"
common:fuchsia_arm64 --copt="-Wno-unused-function"
common:fuchsia_arm64 --define FUCHSIA_BUILD=1 --action_env=AGI_FUCHSIA_BUILD=1
common:fuchsia_x64 --crosstool_top=@fuchsia_clang//:toolchain --cpu=x86_64 --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
common:fuchsia_x64 --cxxopt="-Wno-extra-semi"
common:fuchsia_x64 --copt="-Wno-deprecated-non-prototype"
common:fuchsia_x64 --copt="-Wno-unused-function"
common:fuchsia_x64 --define FUCHSIA_BUILD=1 --action_env=AGI_FUCHSIA_BUILD=1