-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[vcpkg/msbuild] parellel build #19718
Conversation
It is maybe possible to respect VCPKG_MAX_CONCURRENCY? |
I think that's the correct way instead of this changes. |
A few lines below the change the |
The latest change assumes VCPKG_MAX_CONCURRENCY turns into a CMake variable somehow - I don't know how to use VCPKG_MAX_CONCURRENCY and I know that, in general, passing environment variables though vcpkg requires a bit of complication |
So, it looks like the I think these changes fully respect VCPKG_MAX_CONCURRENCY. |
EnforceProcessCountAcrossBuilds=true (must have value)
Just verified it respects VCPKG_MAX_CONCURRENCY using Process Explorer! |
I hope my colleague will review this modification further because I don't have enough knowledge about msbuild. |
@@ -143,7 +143,10 @@ function(vcpkg_install_msbuild) | |||
"/p:VcpkgTriplet=${TARGET_TRIPLET}" | |||
"/p:VcpkgInstalledDir=${_VCPKG_INSTALLED_DIR}" | |||
"/p:VcpkgManifestInstall=false" | |||
"/m" | |||
"/p:UseMultiToolTask=true" |
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.
What effect does this have, if any, for older Visual Studios without MultiToolTask
?
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Thanks :) |
Describe the pull request
Defaults to parallel build for msbuild projects. Prior, only projects built in parallel. With this change, source files within the projects can build in parallel. Ports like activemq-cpp use one vcxproj file for the entire port so without this change, it will build single threaded.
Which triplets are supported/not supported?
N/A
Does your PR follow the maintainer guide
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?N/A