-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.bazelrc
More file actions
58 lines (53 loc) · 1.86 KB
/
.bazelrc
File metadata and controls
58 lines (53 loc) · 1.86 KB
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
# TODO: fixup shared library usage.
build --noexperimental_link_static_libraries_once
# Graphics testing environments options:
#
# * <default>
# Uses the default host GLES and VK drivers.
#
# * `gles_angle_vulkan_lavapipe`
# Uses locally built ANGLE GLES and EGL drivers and Lavapipe VK driver.
#
# * `gles_angle_vulkan_swiftshader`
# Uses locally built ANGLE GLES and EGL drivers and SwiftShader VK driver.
#
# How to use:
#
# bazel build --graphics_drivers=gles_angle_vulkan_lavapipe
#
# bazel test --graphics_drivers=gles_angle_vulkan_lavapipe
#
build --flag_alias=graphics_drivers=//common/testenv:graphics_test_environment
# Bazel 9 started to use `-I` instead `-isystem` for `includes` in `cc_library`
# (see https://github.com/bazelbuild/bazel/releases/tag/9.0.0). Gfxstream still
# uses some `#include <>`s.
# TODO: consider replacing remaining angle bracket includes with quote includes.
build --features=external_include_paths
# Address sanitizer
build:asan --copt -DADDRESS_SANITIZER
build:asan --copt -fno-omit-frame-pointer
build:asan --copt -fsanitize=address
build:asan --copt -g
build:asan --copt -O3
build:asan --linkopt -fsanitize=address
build:asan --strip=never
build:asan --//toolchain/bazel:asan_config=true
# Memory sanitizer
build:msan --copt -DMEMORY_SANITIZER
build:msan --copt -fno-omit-frame-pointer
build:msan --copt -fsanitize=memory
build:msan --copt -g
build:msan --copt -O3
build:msan --linkopt -fsanitize=memory
build:msan --strip=never
build:msan --//toolchain/bazel:msan_config=true
# Undefined Behavior Sanitizer
build:ubsan --copt -DUNDEFINED_BEHAVIOR_SANITIZER
build:ubsan --copt -fno-omit-frame-pointer
build:ubsan --copt -fsanitize=undefined
build:ubsan --copt -g
build:ubsan --copt -O3
build:ubsan --linkopt -fsanitize=undefined
build:ubsan --linkopt -lubsan
build:ubsan --strip=never
build:ubsan --//toolchain/bazel:ubsan_config=true