-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: OnCompileMain needs to register new
link.deps
(#501)
The `OnCompile` hook cannot necessarily resolve the transitive dependencies of all link-time dependencies, as those are normally used to avoid creating dependency cycles. The `OnCompileMain` hook however MUST resolve the transitive dependencies of everything, as it needs to introduce `import`s of all synthetic link-time dependencies so that they are correctly registered (their `init` functions get scheduled, and they get presented to the linker). This was previously not necessarily done, and could result in link-time failures. --- This involved re-working the way the `link.deps` file is added to the `_pkg_.a` files so that both the `OnCompile` and `OnCompileMain` functions contribute to the same closure and it gets written & registered exactly once. As a result `Command.OnClose` was removed (no longer used).
- Loading branch information
1 parent
bf4e88f
commit c163726
Showing
6 changed files
with
90 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters