mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 20:25:38 +03:00
meson: test out headers with more standard versions
They all pass fine, but let's keep testing regularly.
This commit is contained in:
parent
200423c599
commit
aeaac7b540
@ -44,11 +44,24 @@ install_headers(
|
||||
|
||||
opts = [['c'],
|
||||
['c', '-ansi'],
|
||||
['c', '-std=iso9899:1990']]
|
||||
['c', '-std=iso9899:1990'],
|
||||
['c', '-std=iso9899:2011']]
|
||||
|
||||
if cc.has_argument('-std=iso9899:2017')
|
||||
opts += [['c', '-std=iso9899:2017']]
|
||||
endif
|
||||
|
||||
cxx = find_program('c++', required : false)
|
||||
if cxx.found()
|
||||
opts += [['c++']]
|
||||
opts += [['c++'],
|
||||
['c++', '-std=c++98'],
|
||||
['c++', '-std=c++11']]
|
||||
if cc.has_argument('-std=c++14')
|
||||
opts += [['c++', '-std=c++14']]
|
||||
endif
|
||||
if cc.has_argument('-std=c++17')
|
||||
opts += [['c++', '-std=c++17']]
|
||||
endif
|
||||
endif
|
||||
|
||||
foreach header : _systemd_headers
|
||||
|
Loading…
Reference in New Issue
Block a user