Skip to content

Commit 68cb86f

Browse files
committed
Adding entry to build report, even if no update was needed
1 parent e0c7e5f commit 68cb86f

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

tools/build_api.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ def build_project(src_path, build_path, target, toolchain_name,
206206
resources.objects.extend(objects)
207207

208208
# Link Program
209-
res, needed_update = toolchain.link_program(resources, build_path, name)
209+
res, _ = toolchain.link_program(resources, build_path, name)
210210

211-
if report != None and needed_update:
211+
if report != None:
212212
end = time()
213213
cur_result["elapsed_time"] = end - start
214214
cur_result["output"] = toolchain.get_output()
@@ -233,8 +233,6 @@ def build_project(src_path, build_path, target, toolchain_name,
233233
if toolchain_output:
234234
cur_result["output"] += toolchain_output
235235

236-
cur_result["output"] += str(e)
237-
238236
add_result_to_report(report, cur_result)
239237

240238
# Let Exception propagate
@@ -359,11 +357,9 @@ def build_library(src_paths, build_path, target, toolchain_name,
359357
resources.objects.extend(objects)
360358

361359
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)
365361

366-
if report != None and needed_update:
362+
if report != None:
367363
end = time()
368364
cur_result["elapsed_time"] = end - start
369365
cur_result["output"] = toolchain.get_output()
@@ -510,12 +506,12 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, clean=F
510506
for o in separate_objects:
511507
objects.remove(o)
512508

513-
needed_update = toolchain.build_library(objects, BUILD_TOOLCHAIN, "mbed")
509+
toolchain.build_library(objects, BUILD_TOOLCHAIN, "mbed")
514510

515511
for o in separate_objects:
516512
toolchain.copy_files(o, BUILD_TOOLCHAIN)
517513

518-
if report != None and needed_update:
514+
if report != None:
519515
end = time()
520516
cur_result["elapsed_time"] = end - start
521517
cur_result["output"] = toolchain.get_output()

0 commit comments

Comments
 (0)