Debian Codegraph @

test cases/common/282 -D_FORTIFY_SOURCE=2 and -O0/meson.build

raw
1 project('check header', 'c', 'cpp', default_options: ['werror=true'])
2
3 fallback = ''
4
5 if not meson.get_compiler('c').has_argument('-Werror', required: false)
6 error('MESON_SKIP_TEST: -Werror is not available')
7 endif
8
9 foreach comp : [meson.get_compiler('c'), meson.get_compiler('cpp')]
10 assert(comp.check_header('stdio.h', prefix : fallback, args: '-Werror'), 'Stdio missing.')
11 endforeach