vendored-meson/meson/test cases/common/13 pch/withIncludeDirectories/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 | # PGI compiler only supports PCH for C++ |
| 9 | if cc_id == 'pgi' |
| 10 | subdir_done() |
| 11 | endif |
| 12 | |
| 13 | exe = executable('prog', 'prog.c', |
| 14 | include_directories: 'include', |
| 15 | c_pch : 'pch/prog.h') |