test cases/failing/92 no native compiler/meson.build
raw| 1 | project('no native compiler') |
| 2 | |
| 3 | if not meson.is_cross_build() |
| 4 | error('MESON_SKIP_TEST test only applicable when cross building.') |
| 5 | endif |
| 6 | |
| 7 | if add_languages('c', required: false, native: true) |
| 8 | error('MESON_SKIP_TEST test only applicable when native compiler not available.') |
| 9 | endif |
| 10 | |
| 11 | add_languages('c') |
| 12 | executable('main', 'main.c', native: true) |