summaryrefslogtreecommitdiff
path: root/test cases/d/10 d cpp/meson.build
blob: fd6b63b0fbaa780176fe9314d3dfe76da8e11de2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
project('d and c++', 'd', 'cpp')

cpp = meson.get_compiler('cpp')
dc = meson.get_compiler('d')

if cpp.get_id() == 'clang' and dc.get_id() == 'gcc'
  error('MESON_SKIP_TEST combining Clang C++ with GDC produces broken executables.')
endif

e1 = executable('dcpp', 'dmain.d', 'libfile.cpp')
test('dcpp', e1)

e2 = executable('cppd', 'cppmain.cpp', 'libfile.d')
test('cppd', e2)