Skip to content

Commit

Permalink
Back out patch which disables alloc-check in ocaml-jst
Browse files Browse the repository at this point in the history
  • Loading branch information
mshinwell committed Dec 13, 2022
1 parent a6d5796 commit 888d4b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions driver/main_args.ml
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,9 @@ let mk_afl_inst_ratio f =
\ (advanced, see afl-fuzz docs for AFL_INST_RATIO)"
;;

let mk_alloc_check f =
"-alloc-check", Arg.Unit f, "<ignored>"

let mk__ f =
"-", Arg.String f,
"<file> Treat <file> as a file name (even if it starts with `-')"
Expand Down Expand Up @@ -1177,6 +1180,7 @@ module type Optcomp_options = sig
val _save_ir_after : string -> unit
val _probes : unit -> unit
val _no_probes : unit -> unit
val _alloc_check : unit -> unit
end;;

module type Opttop_options = sig
Expand Down Expand Up @@ -1548,6 +1552,7 @@ struct
mk_dump_into_file F._dump_into_file;
mk_dump_dir F._dump_dir;
mk_dump_pass F._dump_pass;
mk_alloc_check F._alloc_check;

mk_args F._args;
mk_args0 F._args0;
Expand Down Expand Up @@ -2034,6 +2039,7 @@ module Default = struct
let _v () = Compenv.print_version_and_library "native-code compiler"
let _no_probes = clear probes
let _probes = set probes
let _alloc_check () = ()
end

module Odoc_args = struct
Expand Down
1 change: 1 addition & 0 deletions driver/main_args.mli
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ module type Optcomp_options = sig
val _save_ir_after : string -> unit
val _probes : unit -> unit
val _no_probes : unit -> unit
val _alloc_check : unit -> unit
end;;

module type Opttop_options = sig
Expand Down

0 comments on commit 888d4b1

Please sign in to comment.