mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
meson: only run c++ tests when c++ compiler is available (#6123)
This commit is contained in:
committed by
Lennart Poettering
parent
42d3bf86bb
commit
ec36d052f7
@@ -40,8 +40,12 @@ install_headers(
|
||||
|
||||
opts = [['c'],
|
||||
['c', '-ansi'],
|
||||
['c', '-std=iso9899:1990'],
|
||||
['c++']]
|
||||
['c', '-std=iso9899:1990']]
|
||||
|
||||
cxx = find_program('c++', required : false)
|
||||
if cxx.found()
|
||||
opts += [['c++']]
|
||||
endif
|
||||
|
||||
foreach header : _systemd_headers
|
||||
foreach opt : opts
|
||||
|
||||
Reference in New Issue
Block a user