mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
meson: Drop meson version compare for fuzz test
We are depending on meson >= 0.53.2 now, so this check can be dropped.
This commit is contained in:
parent
3af5a8c613
commit
d2a58f0edb
@ -1,13 +1,5 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
# The 'optimization' option was introduced in meson 0.48.0, so let's keep
|
|
||||||
# the code compatible with older versions as well
|
|
||||||
if meson.version().version_compare('>=0.48.0')
|
|
||||||
optimization = '--optimization=@0@'.format(get_option('optimization'))
|
|
||||||
else
|
|
||||||
optimization = ''
|
|
||||||
endif
|
|
||||||
|
|
||||||
sanitize_address_undefined = custom_target(
|
sanitize_address_undefined = custom_target(
|
||||||
'sanitize-address-undefined-fuzzers',
|
'sanitize-address-undefined-fuzzers',
|
||||||
output : 'sanitize-address-undefined-fuzzers',
|
output : 'sanitize-address-undefined-fuzzers',
|
||||||
@ -15,7 +7,7 @@ sanitize_address_undefined = custom_target(
|
|||||||
project_source_root,
|
project_source_root,
|
||||||
'@OUTPUT@',
|
'@OUTPUT@',
|
||||||
'fuzzers',
|
'fuzzers',
|
||||||
'-Dfuzz-tests=true -Db_lundef=false -Db_sanitize=address,undefined @0@'.format(optimization),
|
'-Dfuzz-tests=true -Db_lundef=false -Db_sanitize=address,undefined --optimization=@0@'.format(get_option('optimization')),
|
||||||
' '.join(cc.cmd_array()),
|
' '.join(cc.cmd_array()),
|
||||||
cxx_cmd])
|
cxx_cmd])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user