Fixed using files object in subdir with xcode backend

Fixes bug #589. When generating string from file object, it didn't take subdir
into account.
This commit is contained in:
Oskar Sigvardsson 2020-10-04 12:57:02 +02:00 committed by Daniel Mensinger
parent 1dfaccfd91
commit 1d443f1bc6
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class XCodeBackend(backends.Backend):
for s in t.sources:
if isinstance(s, mesonlib.File):
s = s.fname
s = os.path.join(s.subdir, s.fname)
if isinstance(s, str):
s = os.path.join(t.subdir, s)