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
574 B
15 lines
574 B
8 years ago
|
project('dep file gen', 'c')
|
||
|
|
||
7 years ago
|
cc_id = meson.get_compiler('c').get_id()
|
||
|
cc_ver = meson.get_compiler('c').version()
|
||
|
|
||
7 years ago
|
if cc_id == 'intel' or (cc_id == 'lcc' and cc_ver.version_compare('<=1.23.08'))
|
||
7 years ago
|
# ICC and LCC <= 1.23.08 do not escape spaces in paths in the dependency file, so Ninja
|
||
8 years ago
|
# (correctly) thinks that the rule has multiple outputs and errors out:
|
||
|
# 'depfile has multiple output paths'
|
||
7 years ago
|
error('MESON_SKIP_TEST: Skipping test because your compiler is known to generate broken dependency files')
|
||
8 years ago
|
endif
|
||
|
|
||
|
e = executable('main file', 'main .c')
|
||
|
test('test it', e)
|