summaryrefslogtreecommitdiff
path: root/.gitlab/ci.sh
diff options
context:
space:
mode:
authornineonine <mail4chemik@gmail.com>2020-10-16 00:04:40 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-10-20 00:49:07 -0400
commit58a1ca3886b00630937d7f5073b2d7961f8e80ca (patch)
tree5b6d69fe644b6d8891432d5d4f0be1e165367cea /.gitlab/ci.sh
parent6c7a5c0ca07085f31a3e2f8286bb57a0f35961cb (diff)
downloadhaskell-58a1ca3886b00630937d7f5073b2d7961f8e80ca.tar.gz
Compile modules with `-fobject-code` enabled to byte-code when loaded with `*` prefix in ghci (#8042)
The documentation states that when using :add and :load, the `*` prefix forces a module to be loaded as byte-code. However, this seems to be ignored when -fobject-code has been enabled. In that case, the compiled code is always used, regardless of whether the *-form is used. The idea is to consult the Targets in HscEnv and check the 'targetAllowObjCode' flag. If the flag for given module is set, then patch up DynFlags and select compilation backend accordingly. This would require a linear scan of course, but that shouldn't be too costly.
Diffstat (limited to '.gitlab/ci.sh')
0 files changed, 0 insertions, 0 deletions