Skip to content

Commit

Permalink
Make prefix_rules accessible through Super_context
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrinberg committed Feb 26, 2018
1 parent 0c30689 commit 31ea399
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/super_context.ml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ let create
| _ -> Chdir (context.build_dir, action))
}

let prefix_rules t prefix ~f =
Build_system.prefix_rules t.build_system prefix ~f

let add_rule t ?sandbox ?mode ?locks ?loc build =
let build = Build.O.(>>>) build t.chdir in
Build_system.add_rule t.build_system
Expand Down
5 changes: 5 additions & 0 deletions src/super_context.mli
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ val expand_vars
-> String_with_vars.t
-> string

val prefix_rules
: t
-> (unit, unit) Build.t
-> f:(unit -> 'a)
-> 'a
val add_rule
: t
-> ?sandbox:bool
Expand Down

0 comments on commit 31ea399

Please sign in to comment.