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.
 
 
 
 
 
 

15 lines
513 B

project('identity cross test', 'c')
assert(meson.get_compiler('c', native: true).get_define(
'GOT',
args : [ '-DARG_BUILD' ],
prefix : '#include "stuff.h"',
include_directories: include_directories('.'),
) == 'BUILD', 'did not get BUILD from native: true compiler')
assert(meson.get_compiler('c', native: false).get_define(
'GOT',
args : [ '-DARG_HOST' ],
prefix : '#include "stuff.h"',
include_directories: include_directories('.'),
) == 'HOST', 'did not get HOST from native: false compiler')