-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
WindowsPlatform: WindowsPlatform: WindowsfeatureA feature request or implementationA feature request or implementationruntimeThe Swift RuntimeThe Swift Runtime
Description
Motivation
Darwin uses a dyld hook for module registration. Windows provides a loader hook for module load notification globally. We should be able to use this to handle metadata registration similar to Darwin on Windows. Doing so would allow us to remove the need for swiftrt.obj
(and swiftrtT.obj`).
Proposed solution
Use https://learn.microsoft.com/en-us/windows/win32/devnotes/ldrregisterdllnotification for the notification.
Alternatives considered
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
WindowsPlatform: WindowsPlatform: WindowsfeatureA feature request or implementationA feature request or implementationruntimeThe Swift RuntimeThe Swift Runtime