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
More fine-grained control (using [conf]) for build parallelization #8665
Conversation
IMO, it will be hard to remember the name for the given build helper, as it's different ( |
Sure, this is something to decide. This PR tries to cover both approaches: from the Conan perspective it is unified in the |
4bedeef
to
cfaaf19
Compare
cfaaf19
to
0092d41
Compare
Please, review again. Besides the tests, there are two minor changes to logic: 0092d41#diff-d72013a45b00a0adf06f4536d6a8c8844461e51b72911937d63e6dda9a3d440a |
Co-authored-by: James <james@conan.io>
* Added existing tests to CMakeDeps and fixed some things about it (#8697) * Added existing tests to CMakeDeps and fixed some things about it * Review and fixed name of data file * Removed wrong comment and fixed test by declaring filenames only for CMakeDeps * new makefile_gen (#8705) * new makefile_gen * pytest mark reason * Fix remotes not loaded for conan alias command (#8704) * Fix remotes not loaded for alias command * Add test * adding diamond visits and avoid repetitions (#8701) * Start using ConanFileDependencies in msbuilddeps (#8706) * start using ConanFileDependencies in MSBuildDeps generator * full usage of ConanFileDependencies * fix intel imports * More fine-grained control (using [conf]) for build parallelization (#8665) * first shot * format the strings * package_id change due to msbuild property name change * do not fallback to cpu_count * remove parallel from constructor * remove change not needed * add unittesting * check once for parallel * Update conans/test/unittests/tools/microsoft/test_msbuild.py Co-authored-by: James <james@conan.io> Co-authored-by: James <james@conan.io> Co-authored-by: Luis Martinez de Bartolome Izquierdo <lasote@gmail.com> Co-authored-by: Joe <8194899+cobalt77@users.noreply.github.com> Co-authored-by: Javier G. Sogo <jgsogo@gmail.com>
Changelog: Feature: More fine-grained control (using [conf]) for build parallelization.
Docs: conan-io/docs#2061
This PR introduces the following entries in
conf
:tools.build:processes
: number of processes to use for every build-helpertools.gnu.make:jobs
: argument for the--jobs
parameter when runningmake
(overrides the generaltools.build:processes
).tools.microsoft.msbuild:max_cpu_count
: argument for the/m
(/maxCpuCount
) when runningMSBuild
standalone or via CMake (overrides the generaltools.build:processes
).tools.ninja:jobs
: argument for the--jobs
parameter when running Ninja generator via CMake or Meson. (overrides the generaltools.build:processes
).If none of these configuration options is found, Conan won't add anything to the command line running these tools, it will use whatever it is the default.
close #8598