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

CMake buildPresets jobs flag and parallel settings inconsistent #4176

Open
kennon-mckeever opened this issue Nov 14, 2024 · 1 comment
Open
Labels
more info needed More info is needed from the community for us to properly triage and investigate.

Comments

@kennon-mckeever
Copy link

Brief Issue Summary

When building using a cmake build preset, if I specify "jobs": 0 in my build preset, I get inconsistent parallelism between the command line and CMakeTools build command/button. The command line cmake --build --preset=debug will compile in parallel while the CMakeTools build command will compile sequentially. This happens regardless of the cmake.parallelJobs setting (I've tried 0 and 8).

CMake Tools Diagnostics

Debug Log

Additional Information

I am using make and g++ on linux.

I also noticed that if the "jobs" line in the cmake build preset is removed, the cmake.parallelJobs setting also has no influence - I would expect this setting to be the default if a build preset doesn't specify anything.

@Yingzi1234
Copy link
Collaborator

@kennon-mckeever Can this problem be reproduced for all programs? Or only the specified items can be reproduced, could you provide us with your reproduced items?

@Yingzi1234 Yingzi1234 added more info needed More info is needed from the community for us to properly triage and investigate. and removed triage labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed More info is needed from the community for us to properly triage and investigate.
Projects
Status: Blocked
Development

No branches or pull requests

2 participants