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 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
The reason will be displayed to describe this comment to others. Learn more.
A question unrelated to that commit, but rather the whole file: Can this mechanism theoretically be ignored on newer versions of node? This would probably just affect some users prior to 4.X right? Or is it integral to addon compilation?
The reason will be displayed to describe this comment to others. Learn more.
@eljefedelrodeodeljefe: To my understanding it's needed with any version of node to support to use renamed node.exe and/or iojs.exe. As long as you (and the users of your native addon) keep using only node.exe it's not needed to use this mechanism (not even for older node versions).
In one of my projects (where I can't use node gyp for some unrelated reason) I skipped adding win_delay_load_hook.c in my build setup. Reason was that adding the linker switch /DELAYLOAD caused linker errors during import of some vtables once I added more and more code using node/nan/v8 APIs.
90078ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A question unrelated to that commit, but rather the whole file: Can this mechanism theoretically be ignored on newer versions of node? This would probably just affect some users prior to 4.X right? Or is it integral to addon compilation?
90078ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eljefedelrodeodeljefe: To my understanding it's needed with any version of node to support to use renamed node.exe and/or iojs.exe. As long as you (and the users of your native addon) keep using only node.exe it's not needed to use this mechanism (not even for older node versions).
In one of my projects (where I can't use node gyp for some unrelated reason) I skipped adding win_delay_load_hook.c in my build setup. Reason was that adding the linker switch /DELAYLOAD caused linker errors during import of some vtables once I added more and more code using node/nan/v8 APIs.
Seems to be related to the delayload constraints documented at https://msdn.microsoft.com/en-us/library/yx1x886y.aspx
90078ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Flarna okay. That's what I thought and thats reassuring. I'll try going without it. And thanks for the link!!