aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libfuzzer/ya.make
blob: a4f5ab64b066e16a69c438345327695ac2b2546d (plain) (blame)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Generated by devtools/yamaker from nixpkgs 22.05.

LIBRARY()

LICENSE(
    Apache-2.0 AND
    Apache-2.0 WITH LLVM-exception AND
    MIT AND
    NCSA AND
    Public-Domain
)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

VERSION(15.0.5)

ORIGINAL_SOURCE(https://github.com/llvm/llvm-project/archive/llvmorg-15.0.5.tar.gz)

SET(SANITIZER_CFLAGS)

NO_COMPILER_WARNINGS()

NO_UTIL()

IF (SANITIZE_COVERAGE MATCHES "trace-pc")
    MESSAGE(FATAL_ERROR "I will crash you with trace-pc or trace-pc-guard. Use inline-8bit-counters.")
ENDIF()

NO_SANITIZE_COVERAGE()

IF (SANITIZER_TYPE == "undefined")
    NO_SANITIZE()
ENDIF()

IF (OS_WINDOWS)
    SRCS(
        lib/fuzzer/standalone/StandaloneFuzzTargetMain.c
    )
ELSE()
    SRCS(
        lib/fuzzer/FuzzerCrossOver.cpp
        lib/fuzzer/FuzzerDataFlowTrace.cpp
        lib/fuzzer/FuzzerDriver.cpp
        lib/fuzzer/FuzzerExtFunctionsDlsym.cpp
        lib/fuzzer/FuzzerExtFunctionsWeak.cpp
        lib/fuzzer/FuzzerExtFunctionsWindows.cpp
        lib/fuzzer/FuzzerExtraCounters.cpp
        lib/fuzzer/FuzzerExtraCountersDarwin.cpp
        lib/fuzzer/FuzzerExtraCountersWindows.cpp
        lib/fuzzer/FuzzerFork.cpp
        lib/fuzzer/FuzzerIO.cpp
        lib/fuzzer/FuzzerIOPosix.cpp
        lib/fuzzer/FuzzerIOWindows.cpp
        lib/fuzzer/FuzzerLoop.cpp
        lib/fuzzer/FuzzerMain.cpp
        lib/fuzzer/FuzzerMerge.cpp
        lib/fuzzer/FuzzerMutate.cpp
        lib/fuzzer/FuzzerSHA1.cpp
        lib/fuzzer/FuzzerTracePC.cpp
        lib/fuzzer/FuzzerUtil.cpp
        lib/fuzzer/FuzzerUtilDarwin.cpp
        lib/fuzzer/FuzzerUtilLinux.cpp
        lib/fuzzer/FuzzerUtilPosix.cpp
        lib/fuzzer/FuzzerUtilWindows.cpp
    )
ENDIF()

END()

RECURSE(
    lib/fuzzer/afl
)