mirror of https://github.com/ARMmbed/mbed-os.git
Adding clean support back to build_library
At some point, the actual code that did the "clean" for build_library was removed. This also affected building and cleaning tests. This adds this capability back to the build API.pull/2333/head
parent
4b506280eb
commit
6df903f8a6
|
@ -411,6 +411,12 @@ def build_library(src_paths, build_path, target, toolchain_name,
|
|||
else:
|
||||
tmp_path = build_path
|
||||
|
||||
# Clean the build directory
|
||||
if clean:
|
||||
if exists(tmp_path):
|
||||
rmtree(tmp_path)
|
||||
mkdir(tmp_path)
|
||||
|
||||
# Pass all params to the unified prepare_toolchain()
|
||||
toolchain = prepare_toolchain(src_paths, target, toolchain_name,
|
||||
macros=macros, options=options, clean=clean, jobs=jobs,
|
||||
|
|
Loading…
Reference in New Issue