Add a new test for depfile generation with spaces
This checks that dependency generation is correct even when the sources and outputs have spaces in them.
This commit is contained in:
parent
f024114c29
commit
2f5943d34d
|
@ -0,0 +1,3 @@
|
|||
int main(int argc, char *argv[]) {
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
project('dep file gen', 'c')
|
||||
|
||||
cc_id = meson.get_compiler('c').get_id()
|
||||
if cc_id == 'intel'
|
||||
# ICC does not escape spaces in paths in the dependency file, so Ninja
|
||||
# (correctly) thinks that the rule has multiple outputs and errors out:
|
||||
# 'depfile has multiple output paths'
|
||||
error('MESON_SKIP_TEST: Skipping test with Intel compiler because it generates broken dependency files')
|
||||
endif
|
||||
|
||||
e = executable('main file', 'main .c')
|
||||
test('test it', e)
|
Loading…
Reference in New Issue