Skip to content

Commit cec0a70

Browse files
committed
inline make_eval_blang
Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 30d5c58 commit cec0a70

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/dune_rules/expander.ml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,6 @@ module With_deps_if_necessary = struct
702702
Value.to_string v ~dir:(Path.build t.dir)
703703
end
704704

705-
let make_eval_blang ~f ~dir = function
706-
| Blang.Const x -> Memo.Build.return x (* common case *)
707-
| blang -> Blang.eval blang ~dir:(Path.build dir) ~f
708-
709705
module With_reduced_var_set = struct
710706
open Memo.Build.O
711707

@@ -737,9 +733,9 @@ module With_reduced_var_set = struct
737733
~f:(expand_pform_opt ~context ~bindings:Pform.Map.empty ~dir)
738734

739735
let eval_blang ~context ~dir blang =
740-
make_eval_blang
736+
Blang.eval
741737
~f:(expand_pform ~context ~bindings:Pform.Map.empty ~dir)
742-
~dir blang
738+
~dir:(Path.build dir) blang
743739
end
744740

745741
let expand_and_eval_set t set ~standard =
@@ -754,6 +750,6 @@ let expand_and_eval_set t set ~standard =
754750
s)
755751

756752
let eval_blang t blang =
757-
make_eval_blang ~f:(No_deps.expand_pform t) ~dir:t.dir blang
753+
Blang.eval ~f:(No_deps.expand_pform t) ~dir:(Path.build t.dir) blang
758754

759755
let find_package t pkg = t.find_package pkg

0 commit comments

Comments
 (0)