Skip to content

Commit fb96e54

Browse files
committed
Merge pull request #12 from whitequark/master
Restore compatibility with 4.02
2 parents 3e733c7 + 14b0836 commit fb96e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: dumpast.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ let show_file fn =
5757
Compenv.readenv Format.err_formatter Compenv.Before_compile;
5858
let v =
5959
if Filename.check_suffix fn ".mli" then
60-
let ast = Pparse.parse_interface Format.err_formatter fn in
60+
let ast = Pparse.parse_interface ~tool_name:"ocamlc" Format.err_formatter fn in
6161
lift # lift_Parsetree_signature ast
6262
else if Filename.check_suffix fn ".ml" then
63-
let ast = Pparse.parse_implementation Format.err_formatter fn in
63+
let ast = Pparse.parse_implementation ~tool_name:"ocamlc" Format.err_formatter fn in
6464
lift # lift_Parsetree_structure ast
6565
else
6666
failwith (Printf.sprintf "Don't know what to do with file %s" fn)

0 commit comments

Comments
 (0)