Debian Codegraph @

vendored-meson/meson/test cases/common/199 argument syntax/meson.build

raw
1 project(
2 'argument syntax',
3 ['c'],
4 )
5
6 cc = meson.get_compiler('c')
7
8 if ['gcc', 'lcc', 'clang', 'intel'].contains(cc.get_id())
9 expected = 'gcc'
10 elif ['msvc', 'clang-cl', 'intel-cl'].contains(cc.get_id())
11 expected = 'msvc'
12 else
13 # It's possible that other compilers end up here that shouldn't
14 expected = 'other'
15 endif
16
17 assert(cc.get_argument_syntax() == expected,
18 'Wrong output for compiler @0@. expected @1@ but got @2@'.format(
19 cc.get_id(), expected, cc.get_argument_syntax()))