aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/24 compiler run_command/meson.build
blob: 6d9e0b96962ee7473a5f3f6f6aae705fb4bd54aa (plain)
1
2
3
4
5
6
7
8
9
10
project('compiler_object_in_run_command', 'c')
cc = meson.get_compiler('c')

# This test only checks that the compiler object can be passed to
# run_command(). If the compiler has been launched, it is expected
# to output something either to stdout or to stderr.
result = run_command(cc, '--version')
if result.stdout() == '' and result.stderr() == ''
  error('No output in stdout and stderr. Did the compiler run at all?')
endif