If these targets have the same names, only the last processed target gets put into rust-project.json.
32 lines
631 B
Meson
32 lines
631 B
Meson
gencorpus = executable(
|
|
'gencorpus',
|
|
'gencorpus.rs',
|
|
dependencies: [mon],
|
|
link_with: [gentoo_utils],
|
|
)
|
|
|
|
corpus = custom_target(
|
|
'corpus',
|
|
output: 'corpus',
|
|
command: [gencorpus, 'corpus'],
|
|
)
|
|
|
|
fuzz_rs = static_library(
|
|
'parser_fuzzer',
|
|
'fuzz.rs',
|
|
rust_abi: 'c',
|
|
rust_args: [
|
|
'-Cpasses=sancov-module',
|
|
'-Cllvm-args=-sanitizer-coverage-level=3',
|
|
'-Cllvm-args=-sanitizer-coverage-inline-8bit-counters',
|
|
],
|
|
dependencies: [mon],
|
|
link_with: [gentoo_utils],
|
|
)
|
|
|
|
fuzz = executable(
|
|
'fuzzer',
|
|
link_args: ['-fsanitize=fuzzer'],
|
|
link_with: [fuzz_rs],
|
|
)
|