Merge pull request #3069 from dcbaker/pch_one_arg
Fix targets with C and C++ code that use pre compiled headerspull/3075/head
commit
d2445a15a1
2 changed files with 20 additions and 13 deletions
@ -1,6 +1,19 @@ |
||||
project('mixed C and C++ pch test', 'cpp', 'c') |
||||
|
||||
|
||||
exe = executable('prog', 'main.cc', 'func.c', |
||||
c_pch : ['pch/func.h', 'pch/func_pch.c'], |
||||
cpp_pch : ['pch/main_pch.cc', 'pch/main.h']) |
||||
exe = executable( |
||||
'prog', |
||||
files('main.cc', 'func.c'), |
||||
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 |
||||
|
Loading…
Reference in new issue