Xcode: fix path of extracted objects in subdirs.

This commit is contained in:
Jussi Pakkanen 2021-04-12 18:22:49 +03:00
parent bb350aaf6f
commit 96d85d601d
2 changed files with 2 additions and 2 deletions

View File

@ -1077,7 +1077,7 @@ class XCodeBackend(backends.Backend):
if isinstance(o, build.ExtractedObjects):
added_objs = set()
for objname_rel in o.get_outputs(self):
objname_abs = os.path.join(self.environment.get_build_dir(), objname_rel)
objname_abs = os.path.join(self.environment.get_build_dir(), o.target.subdir, objname_rel)
if objname_abs not in added_objs:
added_objs.add(objname_abs)
ldargs += [r'\"' + objname_abs + r'\"']

View File

@ -1,4 +1,4 @@
project('Extract objects from subdirs.', 'c')
project('Extract objects from subdirs', 'c')
if meson.is_unity()
message('Unity build: skipping incompatible test')