aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test cases/common/15 mixed pch/meson.build10
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