Skip to content

Commit 65dd314

Browse files
authored
Merge pull request #5755 from jorisa/fix-make-paths
Fix for #5676 make.py generates duplicate file entries in link_files.txt
2 parents 5a19f6d + d3f6ea4 commit 65dd314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/toolchains/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ def copy_files(self, files_paths, trg_path, resources=None, rel_path=None):
819819
def relative_object_path(self, build_path, base_dir, source):
820820
source_dir, name, _ = split_path(source)
821821

822-
obj_dir = join(build_path, relpath(source_dir, base_dir))
822+
obj_dir = relpath(join(build_path, relpath(source_dir, base_dir)))
823823
if obj_dir is not self.prev_dir:
824824
self.prev_dir = obj_dir
825825
mkdir(obj_dir)

0 commit comments

Comments
 (0)