Debian Codegraph @

vendored-meson/meson/test cases/common/13 pch/withIncludeFile/meson.build

raw
1 cc = meson.get_compiler('c')
2 cc_id = cc.get_id()
3
4 if cc_id == 'lcc'
5 error('MESON_SKIP_TEST: Elbrus compiler does not support PCH.')
6 endif
7
8 if cc.get_argument_syntax() == 'gcc'
9 c_args = ['-include', 'locale.h']
10 elif cc.get_argument_syntax() == 'msvc'
11 c_args = ['/FI' + 'locale.h']
12 else
13 subdir_done()
14 endif
15
16 exe = executable('prog', 'prog.c',
17 c_args: c_args,
18 c_pch : 'pch/prog.h')