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

pull/5767/head
Joris Aerts 2017-12-21 13:53:19 +01:00 committed by adbridge
parent 134f3b5180
commit b62ee44213
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): def relative_object_path(self, build_path, base_dir, source):
source_dir, name, _ = split_path(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: if obj_dir is not self.prev_dir:
self.prev_dir = obj_dir self.prev_dir = obj_dir
mkdir(obj_dir) mkdir(obj_dir)