-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
node-gyp build
on Windows always rebuilds the final binary even if no files were changed
#1115
Comments
Notice that I noticed that this doesn't happen when |
Yeah luckily, build time would be several minutes if it rebuilt all the object files! Had a look and you're right, write time on the |
Yeah there's some 5 year old |
There is an open pull request about that: #951 |
Tried it with |
@joaocgreis Perhaps you can test/review #951 or #964? I think my preference is for the latter. |
Fixed by c307b30...386746c (#964) |
Cloned
bufferutil
, rannpm install
andnode-gyp rebuild
, then runningnode-gyp build
:No source files were modified, but it still rebuilds the binaries. On Linux and Mac this would be a no-op as it recognises nothing has changed.
Is this a limitation of gyp itself? Surely msbuild is capable of this. Is there some setting I can put in binding.gyp to override this?
This is an issue because it slows down build scripts with unnecessary rebuilds. We have a fairly big native addon so it adds about 20 seconds.
The text was updated successfully, but these errors were encountered: