summaryrefslogtreecommitdiffstats
path: root/test cases/common/13 pch/withIncludeFile/meson.build
blob: 4fd2322518cfb99692f438e0baa5c68b79c57116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cc = meson.get_compiler('c')
cc_id = cc.get_id()

if cc_id == 'lcc'
  error('MESON_SKIP_TEST: Elbrus compiler does not support PCH.')
endif

if cc.get_argument_syntax() == 'gcc'
  c_args = ['-include', 'locale.h']
elif cc.get_argument_syntax() == 'msvc'
  c_args = ['/FI' + 'locale.h']
else
  subdir_done()
endif

exe = executable('prog', 'prog.c',
c_args: c_args,
c_pch : 'pch/prog.h')