Skip to content

Commit

Permalink
flambda-backend: Fix different .cmi files being produced by ocamlopt …
Browse files Browse the repository at this point in the history
…and ocamlc when using -pack (#1049)
  • Loading branch information
Ekdohibs authored Jan 6, 2023
1 parent 90ee37b commit d03b346
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bytecomp/bytepackager.ml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ let package_files ~ppf_dump initial_env files targetfile =
Compilation_unit.create (Compilation_unit.Prefix.from_clflags ())
(targetname |> Compilation_unit.Name.of_string)
in
Compilation_unit.set_current (Some comp_unit);
Misc.try_finally (fun () ->
let coercion =
Typemod.package_units initial_env files targetcmi comp_unit in
Expand Down

0 comments on commit d03b346

Please sign in to comment.