Pass context when executing actions (#329)

This commit is contained in:
Rudi Grinberg 2017-11-14 23:36:12 +08:00 committed by GitHub
parent 0c2228e7bc
commit 5103035bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ let compile_rule t ~all_targets_by_dir ?(copy_source=false) pre_rule =
in
make_local_dirs t (Action.chdirs action);
with_locks locks ~f:(fun () ->
Action.exec ~targets action) >>| fun () ->
Action.exec ?context ~targets action) >>| fun () ->
Option.iter sandbox_dir ~f:Path.rm_rf;
(* All went well, these targets are no longer pending *)
pending_targets := Pset.diff !pending_targets targets_to_remove;