Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying node.lib timestamp to prevent redundant link with msbuild #951

Closed
wants to merge 1 commit into from

Conversation

idobh2
Copy link

@idobh2 idobh2 commented Jun 9, 2016

I noticed node-gyp build always creates a new .node binary even when no code/lib were changed.
Turns out that the fact that node.lib copy is created by writing the file each time, which changes its timestamp, is causing msbuild.exe to trigger a link operation.
writing the file, and copying the timestamp resolves this issue.

@pmed
Copy link
Contributor

pmed commented Jun 20, 2016

It seems there is no need to copy node.lib at all. Such node libs are already lie in $node_root_dir/[ia32|x64] directories. We can use a target_arch variable declared in build/config.gypi to link an appropriate node.lib from there.

I have a PR for that: #964

@joaocgreis
Copy link
Member

#964 landed addressing this

@joaocgreis joaocgreis closed this May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants