File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -236,8 +236,8 @@ let save_cmt filename modname binary_annots sourcefile initial_env sg =
236236 output_cmt oc cmt;
237237 close_out oc;
238238 (* TODO: does not make sense to do post-proccesing for [Partial_implementaiton]*)
239- match Sys. getenv " BS_CMT_POST_PROCESS_CMD " with
240- | exception _ -> ()
241- | cmd -> ignore (Sys. command (cmd ^ " -cmt-add " ^ filename ^ (match sourcefile with None -> " " | Some sourcefile -> " :" ^ sourcefile)))
239+ match ! Clflags. bs_gentype with
240+ | None -> ()
241+ | Some cmd -> ignore (Sys. command (cmd ^ " -cmt-add " ^ filename ^ (match sourcefile with None -> " " | Some sourcefile -> " :" ^ sourcefile)))
242242 end ;
243243 clear ()
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ let bs_vscode =
127127 *)
128128let dont_record_crc_unit : string option ref = ref None
129129let bs_only = ref false
130+ let bs_gentype = ref None
130131let no_assert_false = ref false
131132#end
132133
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ val record_event_when_debug : bool ref
107107val bs_vscode : bool
108108val dont_record_crc_unit : string option ref
109109val bs_only : bool ref (* set true on bs top*)
110+ val bs_gentype : string option ref
110111val no_assert_false : bool ref
111112#end
112113
You can’t perform that action at this time.
0 commit comments