meson: update C standards table for building header tests

This commit is contained in:
Yu Watanabe
2025-03-16 10:05:17 +09:00
parent 59e64dd86d
commit be0e492bf2

View File

@@ -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]]