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.
 
 
 
 
 
 

8 lines
521 B

project('D has arguments test', 'd')
compiler = meson.get_compiler('d')
assert(compiler.compiles('int i;'), 'Basic code test does not compile: ' + compiler.get_id())
assert(compiler.has_multi_arguments(['-I.', '-J.']), 'Multi argument test does not work: ' + compiler.get_id())
assert(compiler.has_argument('-I.'), 'Basic argument test does not work: ' + compiler.get_id())
assert(compiler.has_argument('-flag_a_d_compiler_definitely_does_not_have') == false, 'Basic argument test does not work: ' + compiler.get_id())