Otherwise you run into errors such as:
"""
../meson.build:2899:28: ERROR: File src/test/test-loop-util.c does not exist.
"""
when deleting a file in git without staging the deletion.
'ls-files', ':/*.[ch]', ':/*.cc',
check : false)
if all_files.returncode() == 0
- all_files = files(all_files.stdout().split())
+ existing_files = []
+ foreach f : all_files.stdout().split()
+ if fs.exists(f)
+ existing_files += f
+ endif
+ endforeach
+ all_files = files(existing_files)
custom_target(
output : 'tags',
#
# Also, backslashes get mangled, so skip test. See
# https://github.com/mesonbuild/meson/issues/1564.
- if p.contains('\\')
+ if p.contains('\\') or not fs.exists(p)
continue
endif
fuzzer = fs.name(fs.parent(p))