Skip to content

Commit 8d84e4d

Browse files
committed
Rename module Wa_runtime to Runtime_files
1 parent b64a46c commit 8d84e4d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/bin-wasm_of_ocaml/compile.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ let link_and_optimize
9191
let enable_source_maps = Option.is_some opt_sourcemap_file in
9292
Fs.with_intermediate_file (Filename.temp_file "runtime" ".wasm")
9393
@@ fun runtime_file ->
94-
Fs.write_file ~name:runtime_file ~contents:Wa_runtime.wasm_runtime;
94+
Fs.write_file ~name:runtime_file ~contents:Runtime_files.wasm_runtime;
9595
Fs.with_intermediate_file (Filename.temp_file "wasm-merged" ".wasm")
9696
@@ fun temp_file ->
9797
opt_with
@@ -113,7 +113,7 @@ let link_and_optimize
113113
@@ fun opt_temp_sourcemap' ->
114114
let primitives =
115115
Binaryen.dead_code_elimination
116-
~dependencies:Wa_runtime.dependencies
116+
~dependencies:Runtime_files.dependencies
117117
~opt_input_sourcemap:opt_temp_sourcemap
118118
~opt_output_sourcemap:opt_temp_sourcemap'
119119
~input_file:temp_file
@@ -133,7 +133,7 @@ let link_and_optimize
133133
let link_runtime ~profile runtime_wasm_files output_file =
134134
Fs.with_intermediate_file (Filename.temp_file "runtime" ".wasm")
135135
@@ fun runtime_file ->
136-
Fs.write_file ~name:runtime_file ~contents:Wa_runtime.wasm_runtime;
136+
Fs.write_file ~name:runtime_file ~contents:Runtime_files.wasm_runtime;
137137
Fs.with_intermediate_file (Filename.temp_file "wasm-merged" ".wasm")
138138
@@ fun temp_file ->
139139
Binaryen.link
@@ -216,7 +216,7 @@ let build_js_runtime ~primitives ?runtime_arguments () =
216216
in
217217
let prelude = Link.output_js always_required_js in
218218
let init_fun =
219-
match Parse_js.parse (Parse_js.Lexer.of_string Wa_runtime.js_runtime) with
219+
match Parse_js.parse (Parse_js.Lexer.of_string Runtime_files.js_runtime) with
220220
| [ (Expression_statement f, _) ] -> f
221221
| _ -> assert false
222222
in

compiler/bin-wasm_of_ocaml/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
(:standard -safe-string)))
2323

2424
(rule
25-
(target wa_runtime.ml)
25+
(target runtime_files.ml)
2626
(deps
2727
gen/gen.exe
2828
../../runtime/wasm/runtime.wasm

0 commit comments

Comments
 (0)