File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ let print_groups output l =
43
43
output_string output (Printf. sprintf " %s\n " name)))
44
44
45
45
let f (runtime_files , bytecode , target_env ) =
46
+ Generate. init () ;
46
47
let runtime_files, builtin =
47
48
List. partition_map runtime_files ~f: (fun name ->
48
49
match Builtins. find name with
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ let run
91
91
let include_cmis = toplevel && not no_cmis in
92
92
let custom_header = common.Jsoo_cmdline.Arg. custom_header in
93
93
Jsoo_cmdline.Arg. eval common;
94
+ Generate. init () ;
94
95
(match output_file with
95
96
| `Stdout , _ -> ()
96
97
| `Name name , _ when debug_mem () -> Debug. start_profiling name
Original file line number Diff line number Diff line change @@ -2056,5 +2056,3 @@ let init () =
2056
2056
Hashtbl. iter
2057
2057
(fun name (k , _ ) -> Primitive. register name k None None )
2058
2058
internal_primitives
2059
-
2060
- let () = init ()
Original file line number Diff line number Diff line change @@ -98,17 +98,17 @@ let register p k kargs arity =
98
98
(string_of_kind k));
99
99
add_external p;
100
100
(match arity with
101
- | Some a -> Hashtbl. add arities p a
101
+ | Some a -> Hashtbl. replace arities p a
102
102
| _ -> () );
103
103
(match kargs with
104
- | Some k -> Hashtbl. add kind_args_tbl p k
104
+ | Some k -> Hashtbl. replace kind_args_tbl p k
105
105
| _ -> () );
106
- Hashtbl. add kinds p k
106
+ Hashtbl. replace kinds p k
107
107
108
108
let alias nm nm' =
109
109
add_external nm';
110
110
add_external nm;
111
- Hashtbl. add aliases nm nm'
111
+ Hashtbl. replace aliases nm nm'
112
112
113
113
let named_values = ref StringSet. empty
114
114
You can’t perform that action at this time.
0 commit comments