Fix for #5676 make.py generates duplicate file entries in link_files.txt

pull/5755/head
Joris Aerts 2017-12-21 13:53:19 +01:00
parent 9ebefcd63d
commit d3f6ea4ed2
1 changed files with 1 additions and 1 deletions

View File

@ -819,7 +819,7 @@ class mbedToolchain:
def relative_object_path(self, build_path, base_dir, source):
source_dir, name, _ = split_path(source)
obj_dir = join(build_path, relpath(source_dir, base_dir))
obj_dir = relpath(join(build_path, relpath(source_dir, base_dir)))
if obj_dir is not self.prev_dir:
self.prev_dir = obj_dir
mkdir(obj_dir)