Debian Codegraph @

test cases/native/1 trivial/meson.build

raw
1 project('trivial native test', 'c')
2
3 sources = 'trivial.c'
4 cc = meson.get_compiler('c', native: true)
5
6 if meson.is_cross_build()
7 native_exe = executable('native-trivialprog', sources : sources, native : true)
8 test('native exe in cross build', native_exe)
9 endif