Clean the _build/install directory as well
This commit is contained in:
parent
56f6e5bca3
commit
d5f78a1462
|
@ -336,9 +336,13 @@ let remove_old_artifacts t =
|
||||||
if not keep then Path.rmdir dir;
|
if not keep then Path.rmdir dir;
|
||||||
keep
|
keep
|
||||||
in
|
in
|
||||||
|
let walk dir =
|
||||||
|
if Path.exists dir then ignore (walk dir : bool)
|
||||||
|
in
|
||||||
List.iter t.contexts ~f:(fun (ctx : Context.t) ->
|
List.iter t.contexts ~f:(fun (ctx : Context.t) ->
|
||||||
if Path.exists ctx.build_dir then
|
walk ctx.build_dir;
|
||||||
ignore (walk ctx.build_dir : bool))
|
walk (Config.local_install_dir ~context:ctx.name);
|
||||||
|
)
|
||||||
|
|
||||||
let do_build_exn t targets =
|
let do_build_exn t targets =
|
||||||
remove_old_artifacts t;
|
remove_old_artifacts t;
|
||||||
|
|
Loading…
Reference in New Issue