diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-02-14 10:32:57 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-02-14 10:32:57 -0800 |
commit | d3d0d4affb8880ff46c152dccb54d12851f3ca4c (patch) | |
tree | 9a41148f868ca672dcd37299b0ed90bdf9086f37 /test cases | |
parent | 1270af4b9a7183113bf92a01e22c67b1b7bb2a82 (diff) | |
download | meson-d3d0d4affb8880ff46c152dccb54d12851f3ca4c.zip meson-d3d0d4affb8880ff46c152dccb54d12851f3ca4c.tar.gz meson-d3d0d4affb8880ff46c152dccb54d12851f3ca4c.tar.bz2 |
tests/15 mixed pch: Add a test using only the headers
Which is supposed to work for GCC and Clang.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/15 mixed pch/meson.build | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test cases/common/15 mixed pch/meson.build b/test cases/common/15 mixed pch/meson.build index ad8bb95..8e9da93 100644 --- a/test cases/common/15 mixed pch/meson.build +++ b/test cases/common/15 mixed pch/meson.build @@ -7,3 +7,13 @@ exe = executable( c_pch : ['pch/func.h', 'pch/func_pch.c'], cpp_pch : ['pch/main_pch.cc', 'pch/main.h'], ) + +cc = meson.get_compiler('c') +if cc.get_id() != 'msvc' + exe2 = executable( + 'prog2', + files('main.cc', 'func.c'), + c_pch : 'pch/func.h', + cpp_pch : 'pch/main.h', + ) +endif |