Skip to content

Commit

Permalink
DEBUG: asset dir
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Jan 14, 2025
1 parent ae7f825 commit 82c1939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions compiler/lib-wasm/link.ml
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,12 @@ let link_to_directory ~files_to_link ~files ~enable_source_maps ~dir =
let ch, pos, len, crc = Zip.get_entry z ~name:(name ^ ".wasm") in
let intf = Wasm_binary.read_interface (Wasm_binary.from_channel ~name ch pos len) in
let name' = Printf.sprintf "%s-%08lx" name' crc in
Format.eprintf "DIRECTORY %s %b@." dir (Sys.file_exists dir);
Zip.extract_file
z
~name:(name ^ ".wasm")
~file:(Filename.concat dir (name' ^ ".wasm"));
Format.eprintf "EXTRACTED %s@." (Filename.concat dir (name' ^ ".wasm"));
name', intf
in
let z = Zip.open_in (fst (List.hd files)) in
Expand Down
2 changes: 1 addition & 1 deletion compiler/lib/inline.mli
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*)

val f : Code.program -> Deadcode.variable_uses -> Code.program
val f : Code.program -> int array -> Code.program

0 comments on commit 82c1939

Please sign in to comment.