vendored-meson/meson/test cases/common/13 pch/userDefined/meson.build
raw| 1 | cc = meson.get_compiler('c') |
| 2 | cc_id = cc.get_id() |
| 3 | |
| 4 | # User supplied PCH implementation should override the auto |
| 5 | # generated one. PCH implementations are only supported for |
| 6 | # msvc and generally should not be used at all. Support for |
| 7 | # them is only kept for backwards compatibility. |
| 8 | if cc_id == 'msvc' |
| 9 | exe = executable('prog', 'prog.c', c_pch : ['pch/pch.h', 'pch/pch.c']) |
| 10 | endif |