The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
610 B

project(
'argument syntax',
['c'],
)
cc = meson.get_compiler('c')
if ['gcc', 'lcc', 'clang'].contains(cc.get_id())
expected = 'gcc'
elif ['msvc', 'clang-cl'].contains(cc.get_id())
expected = 'msvc'
elif cc.get_id() == 'intel'
if host_machine.system() == 'windows'
expected = 'msvc'
else
expected = 'gcc'
endif
else
# It's possible that other compilers end up here that shouldn't
expected = 'other'
endif
assert(cc.get_argument_syntax() == expected,
'Wrong output for compiler @0@. expected @1@ but got @2@'.format(
cc.get_id(), expected, cc.get_argument_syntax()))