Rerun configuration for all potential input files. Closes #5809.

pull/5834/head
Jussi Pakkanen 6 years ago
parent 1ea3ddc6ad
commit 3db6dcb3b8
  1. 3
      mesonbuild/interpreter.py

@ -2412,12 +2412,13 @@ external dependencies (including libraries) must go to "dependencies".''')
expanded_args.append(a.held_object.get_path())
else:
raise InterpreterException('Arguments ' + m.format(a))
# If any file that was used as an argument to the command
# changes, we must re-run the configuration step.
for a in expanded_args:
if not os.path.isabs(a):
a = os.path.join(builddir if in_builddir else srcdir, self.subdir, a)
if os.path.isfile(a):
a = mesonlib.relpath(a, start=srcdir)
if not a.startswith('..'):
if a not in self.build_def_files:
self.build_def_files.append(a)
return RunProcess(cmd, expanded_args, env, srcdir, builddir, self.subdir,

Loading…
Cancel
Save