-
Notifications
You must be signed in to change notification settings - Fork 29.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
windows: gyp 0.5.0 made build time multiple times slower #35921
Comments
I think this discussion is exactly about the issue: https://developercommunity.visualstudio.com/idea/586584/vs2017-cc-multi-processor-compilation-does-not-wor.html It seems that we can improve it by only providing the directory name ending with a slash instead of the full file path: https://developercommunity.visualstudio.com/comments/586371/view.html I do not have the time to investigate these options. Note that adding |
@targos the experimental fix works, I'll make a PR |
Sets MSBuild experimental switches to make it build in parallel project files generated by gyp 0.5.0. Fixes: nodejs#35921
PR in #35932 |
Sets MSBuild experimental switches to make it build in parallel project files generated by gyp 0.5.0. Fixes: #35921 PR-URL: #35932 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Zeyu Yang <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Sets MSBuild experimental switches to make it build in parallel project files generated by gyp 0.5.0. Fixes: #35921 PR-URL: #35932 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Zeyu Yang <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Sets MSBuild experimental switches to make it build in parallel project files generated by gyp 0.5.0. Fixes: #35921 PR-URL: #35932 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Zeyu Yang <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Sets MSBuild experimental switches to make it build in parallel project files generated by gyp 0.5.0. Fixes: #35921 PR-URL: #35932 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Zeyu Yang <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
What steps will reproduce the bug?
GYP update in #32698 made the build time rise from 3minutes to 16minutes at least on the latest MSBuild 16.7.0+b89cb5fde.
Additional information
Looks like the GYP change changed the genrated
.vcxproj
files a bit, e.g.embedtest.vcxproj
:Looks like the
<ObjectFileName>
tags make the build not run in parallel, thus dramatically increasing the build time./cc @nodejs/build-files @nodejs/platform-windows
The text was updated successfully, but these errors were encountered: