@@ -207,9 +207,9 @@ def build_project(src_path, build_path, target, toolchain_name,
207
207
resources .objects .extend (objects )
208
208
209
209
# Link Program
210
- res , needed_update = toolchain .link_program (resources , build_path , name )
210
+ res , _ = toolchain .link_program (resources , build_path , name )
211
211
212
- if report != None and needed_update :
212
+ if report != None :
213
213
end = time ()
214
214
cur_result ["elapsed_time" ] = end - start
215
215
cur_result ["output" ] = toolchain .get_output ()
@@ -234,8 +234,6 @@ def build_project(src_path, build_path, target, toolchain_name,
234
234
if toolchain_output :
235
235
cur_result ["output" ] += toolchain_output
236
236
237
- cur_result ["output" ] += str (e )
238
-
239
237
add_result_to_report (report , cur_result )
240
238
241
239
# Let Exception propagate
@@ -360,11 +358,9 @@ def build_library(src_paths, build_path, target, toolchain_name,
360
358
resources .objects .extend (objects )
361
359
362
360
if archive :
363
- needed_update = toolchain .build_library (resources .objects , build_path , name )
364
- else :
365
- needed_update = True
361
+ toolchain .build_library (objects , build_path , name )
366
362
367
- if report != None and needed_update :
363
+ if report != None :
368
364
end = time ()
369
365
cur_result ["elapsed_time" ] = end - start
370
366
cur_result ["output" ] = toolchain .get_output ()
@@ -623,12 +619,12 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, clean=F
623
619
for o in separate_objects :
624
620
objects .remove (o )
625
621
626
- needed_update = toolchain .build_library (objects , BUILD_TOOLCHAIN , "mbed" )
622
+ toolchain .build_library (objects , BUILD_TOOLCHAIN , "mbed" )
627
623
628
624
for o in separate_objects :
629
625
toolchain .copy_files (o , BUILD_TOOLCHAIN )
630
626
631
- if report != None and needed_update :
627
+ if report != None :
632
628
end = time ()
633
629
cur_result ["elapsed_time" ] = end - start
634
630
cur_result ["output" ] = toolchain .get_output ()
0 commit comments