forked from The-OpenROAD-Project/OpenROAD
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bazelrc
More file actions
58 lines (45 loc) · 1.98 KB
/
.bazelrc
File metadata and controls
58 lines (45 loc) · 1.98 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
common --enable_bzlmod
common --enable_workspace # explicitly currently still needing this
# suppress distracting warning about newer module
# versions found in dependency graph.
common --check_direct_dependencies=off
# Test timeouts for various levels.
test --test_timeout=300,1800,1800,9600
# bazel 7 is somewhat forgiving for glob patterns that don't
# match, but bazel 8 will be strict. So start now.
common --incompatible_disallow_empty_glob
build --cxxopt "-std=c++17" --host_cxxopt "-std=c++17"
build --cxxopt "-xc++" --host_cxxopt "-xc++"
build --cxxopt "-ffp-contract=off" --host_cxxopt "-ffp-contract=off"
# allow exceptions.
build --cxxopt=-fexceptions --host_cxxopt=-fexceptions
# Turn warnings on...
build --copt "-Wall" --host_copt "-Wall"
build --copt "-Wextra" --host_copt "-Wextra"
# ... and disable the warnings we're not interested in.
build --copt "-Wno-sign-compare" --host_copt "-Wno-sign-compare"
build --copt "-Wno-unused-parameter" --host_copt "-Wno-unused-parameter"
# For 3rd party code: Disable warnings entirely.
# They are not actionable and just create noise.
build --per_file_copt=external/.*@-w
build --host_per_file_copt=external/.*@-w
# Settings for --config=asan address sanitizer build
build:asan --strip=never
build:asan --copt -fsanitize=address
build:asan --copt -DADDRESS_SANITIZER
build:asan --copt -O1
build:asan --copt -g
build:asan --copt -fno-omit-frame-pointer
build:asan --linkopt -fsanitize=address
# Flags with enough debug symbols to get useful outputs with Linux `perf`
build:profile --strip=never
build:profile --copt -g
build:profile --copt -gmlt
build:profile --copt -fno-omit-frame-pointer
# TODO: document
build --incompatible_strict_action_env
# TODO: setup a new cache for OpenROAD
# Read only remote cache, updated by OpenROAD team members and CI.
#build --remote_cache=https://storage.googleapis.com/megaboom-bazel-artifacts
#build --remote_cache_compression=true
try-import %workspace%/user.bazelrc