forked from tensorflow/decision-forests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
53 lines (43 loc) · 1.23 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
# Bazel configuration for Yggdrasil Decision Forests
#
# OPTIONS
#
# Linux
#
# linux: Linux build.
#
# Windows
#
# windows: Windows build.
#
# Common flags.
common --experimental_repo_remote_exec
build --announce_rc
build -c opt
# Allow to use tensorflow internal methods.
build --nocheck_visibility
# Yggdrasil uses tensorflow for IO.
build --define=use_tensorflow_io=1
# Pre-compiled wrappers.
build --define=use_precompiled_wrappers=1
# The user can stop the training with Ctrl+C.
build --define=stop_training_on_interrupt=1
# TensorFlow uses an old version of Absl without StatusOr, so Yggdrasil uses
# its own implementation.
build --define=no_absl_statusor=1
# Yggdrasil uses the tensorflow headers specialized for dynamic linking.
build --define=tensorflow_with_header_lib=1
# Nice print
build:linux --copt=-fdiagnostics-color=always
build --color=yes
# Suppress C++ compiler warnings.
build:linux --copt=-w
build:linux --host_copt=-w
build:macos --copt=-w
build:windows --copt=/W0
# Linux options that should also be used for Windows.
build --define=framework_shared_object=true
build --enable_platform_specific_config
build --define=dynamic_loaded_kernels=true
build --copt=-DAUTOLOAD_DYNAMIC_KERNELS
build --spawn_strategy=standalone