Use absolute paths for dep files in Visual Studio.

pull/740/merge
Jussi Pakkanen 8 years ago
parent 0cf065e12b
commit fa59fa55e2
  1. 3
      mesonbuild/backend/backends.py

@ -568,6 +568,9 @@ class Backend():
elif '@DEPFILE@' in i:
if target.depfile is None:
raise MesonException('Custom target %s has @DEPFILE@ but no depfile keyword argument.' % target.name)
if absolute_paths:
dfilename = os.path.join(self.get_target_private_dir_abs(target), target.depfile)
else:
dfilename = os.path.join(self.get_target_private_dir(target), target.depfile)
i = i.replace('@DEPFILE@', dfilename)
elif '@PRIVATE_OUTDIR_' in i:

Loading…
Cancel
Save