mirror of https://github.com/ARMmbed/mbed-os.git
The python script provided in the original repo fails trying to access an empty string as a file, this version removes any empty strings in the files to build.
parent
685274563e
commit
c845f39c50
|
@ -226,6 +226,7 @@ class mbedToolchain:
|
|||
target_mod_time = stat(target).st_mtime
|
||||
|
||||
for d in dependencies:
|
||||
|
||||
# Some objects are not provided with full path and here we do not have
|
||||
# information about the library paths. Safe option: assume an update
|
||||
if not d or not exists(d):
|
||||
|
@ -324,6 +325,10 @@ class mbedToolchain:
|
|||
# Handle a single file
|
||||
if type(files_paths) != ListType: files_paths = [files_paths]
|
||||
|
||||
for source in files_paths:
|
||||
if source is None:
|
||||
files_paths.remove(source)
|
||||
|
||||
for source in files_paths:
|
||||
if rel_path is not None:
|
||||
relative_path = relpath(source, rel_path)
|
||||
|
|
Loading…
Reference in New Issue