forked from google/silifuzz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
24 lines (17 loc) · 1.05 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
# Bazel modules are not supported yet.
common --noenable_bzlmod
build --client_env=CC=clang
# Building Unicorn v2 on x86 requires a CPU that supports CX16.
# This means at least core2. We chose the oldest arch we actually test on.
build --copt=-march=haswell
build --cxxopt=-std=c++20 --cxxopt=-fno-stack-protector --copt=-Wno-narrowing --copt=-fno-exceptions --cxxopt=-Wno-unused-private-field --cxxopt=-Wno-defaulted-function-deleted
# SiliFuzz build is "selfhosted" (i.e. uses its own stack for some of the build tools).
# Use the same configuration as the target above
build --host_cxxopt=-std=c++20 --host_cxxopt=-fno-stack-protector --host_copt=-Wno-narrowing --host_copt=-fno-exceptions --host_cxxopt=-Wno-unused-private-field --host_cxxopt=-Wno-defaulted-function-deleted
# Remove security hardening as it clashes with nolibc
build --copt -U_FORTIFY_SOURCE
build --host_copt -U_FORTIFY_SOURCE
# We already have absl in the build, define absl=1 to tell googletest to use absl for backtrace.
build --define absl=1
build --copt=-fPIC
build --linkopt -fuse-ld=lld