mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2333 from bridadan/build-library-clean
Adding clean support back to build_librarypull/2331/merge
commit
d83157a6fa
|
@ -411,6 +411,12 @@ def build_library(src_paths, build_path, target, toolchain_name,
|
||||||
else:
|
else:
|
||||||
tmp_path = build_path
|
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()
|
# Pass all params to the unified prepare_toolchain()
|
||||||
toolchain = prepare_toolchain(src_paths, target, toolchain_name,
|
toolchain = prepare_toolchain(src_paths, target, toolchain_name,
|
||||||
macros=macros, options=options, clean=clean, jobs=jobs,
|
macros=macros, options=options, clean=clean, jobs=jobs,
|
||||||
|
|
Loading…
Reference in New Issue