mirror of
https://github.com/systemd/systemd.git
synced 2026-07-25 00:35:55 +00:00
meson: update C standards table for building header tests
This commit is contained in:
@@ -65,11 +65,12 @@ endif
|
||||
|
||||
opts = [['c'],
|
||||
['c', '-ansi'],
|
||||
['c', '-std=iso9899:1990'],
|
||||
['c', '-std=iso9899:2011']]
|
||||
['c', '-std=iso9899:1990'], # C90
|
||||
['c', '-std=iso9899:1999'], # C99
|
||||
['c', '-std=iso9899:2011']] # C11
|
||||
|
||||
foreach opt : ['-std=iso9899:2017',
|
||||
'-std=c23',
|
||||
foreach opt : ['-std=iso9899:2018', # C17
|
||||
'-std=iso9899:2024', # C23
|
||||
]
|
||||
if cc.has_argument(opt)
|
||||
opts += [['c', opt]]
|
||||
|
||||
Reference in New Issue
Block a user