Skip to content

Commit 6c635dc

Browse files
committed
minor changes after merge
1 parent 99a0d85 commit 6c635dc

File tree

4 files changed

+34
-27
lines changed

4 files changed

+34
-27
lines changed

driver/main_args.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,9 @@ let mk_afl_inst_ratio f =
966966
\ (advanced, see afl-fuzz docs for AFL_INST_RATIO)"
967967
;;
968968

969+
let mk_alloc_check f =
970+
"-alloc-check", Arg.Unit f, "<ignored>"
971+
969972
let mk__ f =
970973
"-", Arg.String f,
971974
"<file> Treat <file> as a file name (even if it starts with `-')"
@@ -1201,6 +1204,7 @@ module type Optcomp_options = sig
12011204
val _save_ir_after : string -> unit
12021205
val _probes : unit -> unit
12031206
val _no_probes : unit -> unit
1207+
val _alloc_check : unit -> unit
12041208
end;;
12051209

12061210
module type Opttop_options = sig
@@ -1578,6 +1582,7 @@ struct
15781582
mk_dump_into_file F._dump_into_file;
15791583
mk_dump_dir F._dump_dir;
15801584
mk_dump_pass F._dump_pass;
1585+
mk_alloc_check F._alloc_check;
15811586

15821587
mk_args F._args;
15831588
mk_args0 F._args0;
@@ -2069,6 +2074,7 @@ module Default = struct
20692074
let _v () = Compenv.print_version_and_library "native-code compiler"
20702075
let _no_probes = clear probes
20712076
let _probes = set probes
2077+
let _alloc_check () = ()
20722078
end
20732079

20742080
module Odoc_args = struct

driver/main_args.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ module type Optcomp_options = sig
246246
val _save_ir_after : string -> unit
247247
val _probes : unit -> unit
248248
val _no_probes : unit -> unit
249+
val _alloc_check : unit -> unit
249250
end;;
250251

251252
module type Opttop_options = sig

dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
;; CR gyorsh: it is not clear what the ":standard" flags are, and they
2626
;; may change depending on the version of dune.
2727
;; Consider hard-coded flags, such as -O3.
28-
(:standard -alloc-check -caml-apply-inline-fast-path)))
28+
(:standard -alloc-check)))
2929
(boot
3030
(flags
3131
(:standard -warn-error +A))))

toplevel/native/dune

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@
1212
;* *
1313
;**************************************************************************
1414

15-
; (copy_files# ../*.ml*)
16-
;
17-
; (library
18-
; (name ocamltoplevel_native)
19-
; (wrapped false)
20-
; (modes native)
21-
; (flags (:standard -principal))
22-
; (libraries ocamlcommon ocamloptcomp dynlink_internal)
23-
; (modules :standard \ topstart expunge))
24-
;
25-
; (executable
26-
; (name topstart)
27-
; (modes native)
28-
; (flags (:standard -principal))
29-
; (modules topstart)
30-
; (libraries ocamltoplevel_native))
31-
;
32-
; (install
33-
; (files
34-
; (topstart.exe as ocamlnat)
35-
; )
36-
; (section bin)
37-
; (package ocaml))
38-
;
39-
;
15+
(copy_files# ../*.ml*)
16+
17+
(library
18+
(name ocamltoplevel_native)
19+
(wrapped false)
20+
(modes native)
21+
(flags (:standard -principal))
22+
(libraries ocamlcommon ocamloptcomp dynlink_internal)
23+
(modules :standard \ topstart expunge))
24+
25+
(executable
26+
(name topstart)
27+
(modes native)
28+
(flags (:standard -principal))
29+
(modules topstart)
30+
(libraries ocamltoplevel_native))
31+
32+
(install
33+
(files
34+
(topstart.exe as ocamlnat)
35+
)
36+
(section bin)
37+
(package ocaml))
38+
39+
;
4040
; (install
4141
; (files
4242
; (ocamltoplevel.cma as compiler-libs/ocamltoplevel.cma)
@@ -63,4 +63,4 @@
6363
; )
6464
; (section lib)
6565
; (package ocaml))
66-
;
66+
;

0 commit comments

Comments
 (0)