Skip to content

Commit d03b346

Browse files
authored
flambda-backend: Fix different .cmi files being produced by ocamlopt and ocamlc when using -pack (#1049)
1 parent 90ee37b commit d03b346

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bytecomp/bytepackager.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ let package_files ~ppf_dump initial_env files targetfile =
267267
Compilation_unit.create (Compilation_unit.Prefix.from_clflags ())
268268
(targetname |> Compilation_unit.Name.of_string)
269269
in
270+
Compilation_unit.set_current (Some comp_unit);
270271
Misc.try_finally (fun () ->
271272
let coercion =
272273
Typemod.package_units initial_env files targetcmi comp_unit in

0 commit comments

Comments
 (0)