Skip to content

Commit

Permalink
Remove old usage for Var_expansion in ppx driver
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
rgrinberg committed Jun 6, 2018
1 parent d53d04e commit eb60f68
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/preprocessing.ml
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,7 @@ let lint_module sctx ~dir ~dep_kind ~lint ~lib_name ~scope ~dir_kind =
>>| fun (exe, driver) ->
(exe,
let extra_vars =
String_map.singleton "corrected-suffix"
(Action.Var_expansion.Strings ([corrected_suffix], Split))
String_map.singleton "corrected-suffix" [Value.String corrected_suffix]
in
Build.memoize "ppx flags"
(SC.expand_and_eval_set sctx driver.info.lint_flags
Expand Down Expand Up @@ -553,8 +552,7 @@ let make sctx ~dir ~dep_kind ~lint ~preprocess
get_ppx_driver sctx ~loc ~scope ~dir_kind pps >>| fun (exe, driver) ->
(exe,
let extra_vars =
String_map.singleton "corrected-suffix"
(Action.Var_expansion.Strings ([corrected_suffix], Split))
String_map.singleton "corrected-suffix" [Value.String corrected_suffix]
in
Build.memoize "ppx flags"
(SC.expand_and_eval_set sctx driver.info.flags
Expand Down

0 comments on commit eb60f68

Please sign in to comment.