Clean the _build/install directory as well

This commit is contained in:
Jeremie Dimino 2017-03-01 11:39:41 +00:00
parent 56f6e5bca3
commit d5f78a1462
1 changed files with 6 additions and 2 deletions

View File

@ -336,9 +336,13 @@ let remove_old_artifacts t =
if not keep then Path.rmdir dir;
keep
in
let walk dir =
if Path.exists dir then ignore (walk dir : bool)
in
List.iter t.contexts ~f:(fun (ctx : Context.t) ->
if Path.exists ctx.build_dir then
ignore (walk ctx.build_dir : bool))
walk ctx.build_dir;
walk (Config.local_install_dir ~context:ctx.name);
)
let do_build_exn t targets =
remove_old_artifacts t;