We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46aa737 commit 0cc0f8dCopy full SHA for 0cc0f8d
compiler/bin-wasm_of_ocaml/compile.ml
@@ -175,7 +175,11 @@ let optimize ~profile ?sourcemap_file in_file out_file =
175
176
let link_and_optimize ~profile ?sourcemap_file runtime_wasm_files wat_file output_file =
177
let sourcemap_file =
178
- if Sys.command "wasm-merge -osm foo 2> /dev/null" <> 0 then None else sourcemap_file
+ (* Check that Binaryen supports the necessary sourcemaps options (requires
179
+ version >= 118) *)
180
+ match sourcemap_file with
181
+ | Some _ when Sys.command "wasm-merge -osm foo 2> /dev/null" <> 0 -> None
182
+ | Some _ | None -> sourcemap_file
183
in
184
let enable_source_maps = Option.is_some sourcemap_file in
185
with_intermediate_file (Filename.temp_file "runtime" ".wasm")
0 commit comments