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.
pull/1253/head
Nirbheek Chauhan 8 years ago
parent f024114c29
commit 2f5943d34d
  1. 3
      test cases/common/132 dependency file generation/main .c
  2. 12
      test cases/common/132 dependency file generation/meson.build

@ -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…
Cancel
Save