You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch add the "-linkall" flag when creating the ocamlcommon.cma
and ocamlcommon.cmxa archives.
Modules in "typing/" subdirectory rely on side-effects during
initialization to setup forward references. It would be unsafe for
a module to not be linked, thus it seems preferable to enforce linking
of all modules.
We re-discussed this patch recently: it's not terribly satisfying, but there is no clear better way to do, so it was decided to include it. In the future, it would be nice to have a way to record such forward-dependencies, that the linker could understand to fail if the forward-depended file is not passed.
Original bug ID: 6509
Reporter: @gasche
Assigned to: @gasche
Status: resolved (set by @gasche on 2014-08-06T11:51:35Z)
Resolution: fixed
Priority: low
Severity: tweak
Version: 4.02.0+dev
Target version: 4.02.0+dev
Category: ~DO NOT USE (was: OCaml general)
Related to: #7271
Bug description
A patch by Frédéric Bour:
#53
This patch add the "-linkall" flag when creating the ocamlcommon.cma
and ocamlcommon.cmxa archives.
Modules in "typing/" subdirectory rely on side-effects during
initialization to setup forward references. It would be unsafe for
a module to not be linked, thus it seems preferable to enforce linking
of all modules.
File attachments
The text was updated successfully, but these errors were encountered: