-
Notifications
You must be signed in to change notification settings - Fork 21
/
.bazelrc
49 lines (40 loc) · 1.62 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
# Copyright 2020 Google LLC
#
# 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.
#
# This file is based on tensorflow's (v2.2.0) .bazelrc found here:
# https://github.com/tensorflow/tensorflow/blob/v2.2.0/.bazelrc
#
# We need to provide this file because we need to be as close as possible to
# Tensorflow's building environment.
# Sets the default Apple platform to macOS.
build --apple_platform_type=macos
# Enable using platform specific build settings
build --enable_platform_specific_config
# Enable using 'cc_shared_library' rule.
build --experimental_cc_shared_library
# Flag to enable remote config
common --experimental_repo_remote_exec
# Suppress C++ compiler warnings, otherwise build logs become 10s of MBs.
build:linux --copt=-w
build:macos --copt=-w
# By default, build TF in C++ 17 mode.
build:linux --cxxopt=-std=c++17
build:linux --cxxopt=-D_GLIBCXX_USE_CXX11_ABI=1
build:linux --host_cxxopt=-std=c++17
build:macos --cxxopt=-std=c++17
build:macos --cxxopt=-D_GLIBCXX_USE_CXX11_ABI=1
build:macos --host_cxxopt=-std=c++17
# Suppress all warning messages.
build:short_logs --output_filter=DONT_MATCH_ANYTHING
build:macos --macos_minimum_os=10.12