blob: 4bd464a4e93a6fdc63c9cff279b9d6958e5c70cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Based on https://github.com/llvm/llvm-project/blob/llvmorg-11.1.0/compiler-rt/lib/fuzzer/build.sh
LIB_FUZZER_PATH = "compiler-rt/lib/fuzzer"
cc_library(
name = "libFuzzer",
srcs = glob([
LIB_FUZZER_PATH + "/*.cpp",
]),
hdrs = glob([
LIB_FUZZER_PATH + "/*.h",
LIB_FUZZER_PATH + "/*.def",
]),
copts = [
"-g",
"-O2",
"-fno-omit-frame-pointer",
"-std=c++11",
],
alwayslink = True,
visibility = ["//visibility:public"],
)
|