aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/failing/97 no native compiler/meson.build
blob: f0126ac15eb433de57bf195d554ea3f0436aaa7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
project('no native compiler')

if not meson.is_cross_build()
   error('MESON_SKIP_TEST test only applicable when cross building.')
endif

if add_languages('c', required: false, native: true)
  error('MESON_SKIP_TEST test only applicable when native compiler not available.')
endif

add_languages('c')
executable('main', 'main.c', native: true)