mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08:00
meson: we cannot call get_compiler('cpp') if we didn't "add" it
Follow-up for f6d783ac3d
.
This commit is contained in:
parent
13711093ef
commit
1b2acaa7a6
@ -278,6 +278,9 @@ cxx = find_program('c++', required : false)
|
||||
if cxx.found()
|
||||
# Used only for tests
|
||||
add_languages('cpp')
|
||||
cpp_cmd = ' '.join(meson.get_compiler('cpp').cmd_array())
|
||||
else
|
||||
cpp_cmd = ''
|
||||
endif
|
||||
|
||||
want_ossfuzz = get_option('oss-fuzz')
|
||||
|
@ -9,7 +9,7 @@ sanitize_address = custom_target(
|
||||
'fuzzers',
|
||||
'-Db_lundef=false -Db_sanitize=address',
|
||||
' '.join(cc.cmd_array()),
|
||||
' '.join(meson.get_compiler('cpp').cmd_array())])
|
||||
cpp_cmd])
|
||||
|
||||
sanitizers = [['address', sanitize_address]]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user