@@ -206,9 +206,9 @@ def build_project(src_path, build_path, target, toolchain_name,
206
206
resources .objects .extend (objects )
207
207
208
208
# Link Program
209
- res , needed_update = toolchain .link_program (resources , build_path , name )
209
+ res , _ = toolchain .link_program (resources , build_path , name )
210
210
211
- if report != None and needed_update :
211
+ if report != None :
212
212
end = time ()
213
213
cur_result ["elapsed_time" ] = end - start
214
214
cur_result ["output" ] = toolchain .get_output ()
@@ -233,8 +233,6 @@ def build_project(src_path, build_path, target, toolchain_name,
233
233
if toolchain_output :
234
234
cur_result ["output" ] += toolchain_output
235
235
236
- cur_result ["output" ] += str (e )
237
-
238
236
add_result_to_report (report , cur_result )
239
237
240
238
# Let Exception propagate
@@ -359,11 +357,9 @@ def build_library(src_paths, build_path, target, toolchain_name,
359
357
resources .objects .extend (objects )
360
358
361
359
if archive :
362
- needed_update = toolchain .build_library (resources .objects , build_path , name )
363
- else :
364
- needed_update = True
360
+ toolchain .build_library (objects , build_path , name )
365
361
366
- if report != None and needed_update :
362
+ if report != None :
367
363
end = time ()
368
364
cur_result ["elapsed_time" ] = end - start
369
365
cur_result ["output" ] = toolchain .get_output ()
@@ -510,12 +506,12 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, clean=F
510
506
for o in separate_objects :
511
507
objects .remove (o )
512
508
513
- needed_update = toolchain .build_library (objects , BUILD_TOOLCHAIN , "mbed" )
509
+ toolchain .build_library (objects , BUILD_TOOLCHAIN , "mbed" )
514
510
515
511
for o in separate_objects :
516
512
toolchain .copy_files (o , BUILD_TOOLCHAIN )
517
513
518
- if report != None and needed_update :
514
+ if report != None :
519
515
end = time ()
520
516
cur_result ["elapsed_time" ] = end - start
521
517
cur_result ["output" ] = toolchain .get_output ()
0 commit comments