Skip to content

Backport: Fix for #18955 to GHC 9.0

Roland Senn requested to merge RolandSenn/ghc:T18955_A into ghc-9.0

Since MR !554 (merged) (#15454 (closed)) GHCi automatically enabled the flag -fobject-code on any module using the UnboxedTuples or UnboxedSum extensions.

MR !1553 (closed) (#16876 (closed)) allowed to inhibit the automatic compiling to object-code of these modules by setting the fbyte-code flag. However, it assigned 2 different semantics to this flag and introduced the regression described in issue #18955 (closed).

This MR fixes this regression by unsetting the internal flag Opt_ByteCodeIfUnboxed before it's copied to DynFlags local to the module.

Merge request reports