run_command: Do not add dependency on /dev/stdout

Blacklist /dev paths, this fix infinite reconfigure when /dev/stdout is
redirected to a file.

Fixes: #6315.
pull/6321/head
Xavier Claessens 5 years ago committed by Jussi Pakkanen
parent 1298f71b1c
commit 162d2bcc71
  1. 2
      mesonbuild/interpreter.py

@ -2275,7 +2275,7 @@ class Interpreter(InterpreterBase):
if f.is_built:
return
f = os.path.normpath(f.relative_name())
elif os.path.isfile(f):
elif os.path.isfile(f) and not f.startswith('/dev'):
srcdir = self.environment.get_source_dir()
builddir = self.environment.get_build_dir()
f = os.path.normpath(f)

Loading…
Cancel
Save