forked from magma/magma
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bazelrc
34 lines (27 loc) · 1.17 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
startup --output_base=/tmp/bazel
build --announce_rc
build --color=yes
build --cxxopt=-std=c++14
build --strip=never
build --compilation_mode=dbg
# For building with Bazel inside the Magma-Builder Docker container
build:docker --disk_cache=/magma/.bazel-cache
common:docker --repository_cache=/magma/.bazel-cache-repo
build:devcontainer --disk_cache=/workspaces/magma/.bazel-cache
common:devcontainer --repository_cache=/workspaces/magma/.bazel-cache-repo
build:devcontainer --define=folly_so=1
build:specify_vm_cc --action_env=CC=/usr/bin/gcc
build:specify_vm_cc --action_env=CXX=/usr/bin/g++
# For building with Bazel inside the Magma VM
build:vm --disk_cache=/home/vagrant/magma/.bazel-cache
common:vm --repository_cache=/home/vagrant/magma/.bazel-cache-repo
build:vm --define=folly_so=1
build:vm --config=specify_vm_cc
build:asan --strip=never
build:asan --copt=-fsanitize=address
build:asan --copt=-O0
build:asan --copt=-fno-omit-frame-pointer
build:asan --linkopt=-fsanitize=address
build:asan --action_env=ASAN_OPTIONS=detect_leaks=1:color=always
# system bazelrc should include config specific to different build envs (--config=vm, --config=devcontainer, etc.)
try-import /etc/bazelrc