@@ -297194,7 +297194,7 @@ val force_cmj : bool ref
297194297194
297195297195val jsx_version : int ref
297196297196val refmt : string option ref
297197- val is_reason : bool ref
297197+
297198297198
297199297199val js_stdout : bool ref
297200297200
@@ -297305,7 +297305,6 @@ let jsx_version = ref (-1)
297305297305
297306297306let refmt = ref None
297307297307
297308- let is_reason = ref false
297309297308
297310297309let js_stdout = ref true
297311297310
@@ -415835,10 +415834,11 @@ let after_parsing_sig ppf outputprefix ast =
415835415834 end;
415836415835 if !Js_config.binary_ast then
415837415836 begin
415837+ let sourcefile = !Location.input_name in
415838415838 Binary_ast.write_ast
415839415839 Mli
415840- ~sourcefile:!Location.input_name
415841- ~output:(outputprefix ^ if !Js_config.is_reason then Literals.suffix_reiast else Literals.suffix_mliast )
415840+ ~sourcefile
415841+ ~output:(outputprefix ^ Filename.extension sourcefile ^ "ast" )
415842415842 (* to support relocate to another directory *)
415843415843 ast
415844415844
@@ -415942,10 +415942,9 @@ let after_parsing_impl ppf outputprefix (ast : Parsetree.structure) =
415942415942 close_out oc ;
415943415943 end;
415944415944 if !Js_config.binary_ast then
415945- Binary_ast.write_ast ~sourcefile:!Location.input_name
415946- Ml ~output:(outputprefix ^
415947- if !Js_config.is_reason then Literals.suffix_reast else Literals.suffix_mlast
415948- )
415945+ let sourcefile = !Location.input_name in
415946+ Binary_ast.write_ast ~sourcefile
415947+ Ml ~output:(outputprefix ^ Filename.extension sourcefile ^ "ast")
415949415948 ast ;
415950415949 if !Js_config.syntax_only then
415951415950 Warnings.check_fatal ()
@@ -418960,7 +418959,6 @@ let process_implementation_file ppf name =
418960418959
418961418960
418962418961let setup_reason_context () =
418963- Js_config.is_reason := true;
418964418962 Lazy.force Super_main.setup;
418965418963 Lazy.force Reason_outcome_printer_main.setup
418966418964
0 commit comments