forked from google/xls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
50 lines (40 loc) · 1.93 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
# We use bazel >= 6, but no bzlmod yet.
common --noenable_bzlmod
# Minimium c++ standard used.
build --cxxopt "-std=c++20" --host_cxxopt "-std=c++20"
build --action_env=BAZEL_CXXOPTS=-std=c++20
# Depending on the installation, clang or clang-tidy need to be told that
# a c++ file is, indeed, containing c++ (bazel just invokes clang, not clang++)
build --cxxopt "-xc++" --host_cxxopt "-xc++"
# Enable default C++ extensions (required in switching to our packaged LLVM)
build --copt "-D_DEFAULT_SOURCE=1" --host_copt "-D_DEFAULT_SOURCE=1"
# Tell that auto_ptr<> is not available. Needed for boost (still needed ?)
build --copt "-D_HAS_AUTO_PTR_ETC=0" --host_copt "-D_HAS_AUTO_PTR_ETC=0"
# Disable a couple of warnings we're not interested in.
build --copt "-Wno-sign-compare" --host_copt "-Wno-sign-compare"
build --copt "-Wno-comment" --host_copt "-Wno-comment"
# Use absl in googletest to work around
# https://github.com/google/googletest/issues/4383
build --define absl=1
build --incompatible_enable_cc_toolchain_resolution
build --@llvm_zstd//:llvm_enable_zstd=false
# Do not use some deps from or-tools
build --@com_google_ortools//ortools/algorithms:with_scip=false
build --@com_google_ortools//ortools/linear_solver:with_glpk=false
build --@com_google_ortools//ortools/linear_solver:with_pdlp=false
build --@com_google_ortools//ortools/linear_solver:with_scip=false
# 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
# To regenerate this file (if needed), please run:
#
# bazel run @com_google_fuzztest//bazel:setup_configs > fuzztest.bazelrc
#
try-import %workspace%/fuzztest.bazelrc
# https://bazel.build/configure/best-practices#bazelrc-file
try-import %workspace%/user.bazelrc