Xcode: fix path of extracted objects in subdirs.
This commit is contained in:
parent
bb350aaf6f
commit
96d85d601d
|
@ -1077,7 +1077,7 @@ class XCodeBackend(backends.Backend):
|
||||||
if isinstance(o, build.ExtractedObjects):
|
if isinstance(o, build.ExtractedObjects):
|
||||||
added_objs = set()
|
added_objs = set()
|
||||||
for objname_rel in o.get_outputs(self):
|
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:
|
if objname_abs not in added_objs:
|
||||||
added_objs.add(objname_abs)
|
added_objs.add(objname_abs)
|
||||||
ldargs += [r'\"' + objname_abs + r'\"']
|
ldargs += [r'\"' + objname_abs + r'\"']
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
project('Extract objects from subdirs.', 'c')
|
project('Extract objects from subdirs', 'c')
|
||||||
|
|
||||||
if meson.is_unity()
|
if meson.is_unity()
|
||||||
message('Unity build: skipping incompatible test')
|
message('Unity build: skipping incompatible test')
|
||||||
|
|
Loading…
Reference in New Issue