Debian Codegraph @

test cases/unit/50 noncross options/meson.build

raw
1 project('std_remains', 'c', default_options: ['c_std=c99'])
2
3 executable('prog', 'prog.c')
4
5 # Check that native: true does not affect the use of c_std in
6 # non-cross builds
7
8 if not meson.is_cross_build()
9 executable('prog2', 'prog.c', native: true)
10
11 # Check that even deps marked as native are found
12 # by default when not cross compiling.
13 dependency('ylib', method: 'pkg-config')
14 endif