mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
9b0ca01903
cpp is a really bad alias for c++ because it's also the name of the preprocessor. Let's rename the variable.
36 lines
1.1 KiB
Meson
36 lines
1.1 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
sanitize_address = custom_target(
|
|
'sanitize-address-fuzzers',
|
|
output : 'sanitize-address-fuzzers',
|
|
command : [meson_build_sh,
|
|
meson.source_root(),
|
|
'@OUTPUT@',
|
|
'fuzzers',
|
|
'-Db_lundef=false -Db_sanitize=address',
|
|
' '.join(cc.cmd_array()),
|
|
cxx_cmd])
|
|
|
|
sanitizers = [['address', sanitize_address]]
|
|
|
|
if git.found()
|
|
out = run_command(
|
|
git,
|
|
'--git-dir=@0@/.git'.format(meson.source_root()),
|
|
'ls-files', ':/test/fuzz/*/*')
|
|
else
|
|
out = run_command(
|
|
'sh', '-c', 'ls @0@/*/*'.format(meson.current_source_dir()))
|
|
endif
|
|
|
|
fuzz_regression_tests = []
|
|
foreach p : out.stdout().split()
|
|
# Remove the last entry which is ''.
|
|
#
|
|
# Also, backslashes get mangled, so skip test. See
|
|
# https://github.com/mesonbuild/meson/issues/1564.
|
|
if not p.contains('\\')
|
|
fuzz_regression_tests += p
|
|
endif
|
|
endforeach
|