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

Enable parallel builds for msvc #1266

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

ZehMatt
Copy link
Contributor

@ZehMatt ZehMatt commented Jul 29, 2023

While working on the issue #532 I noticed that the build is not done in parallel as the default for parallel builds is off, see https://learn.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170

This PR adds /MP to the compile options for msvc which significantly improves the build times.

Before:
========== Rebuild started at 12:28 AM and took 01:25.727 minutes ==========
After:
========== Rebuild started at 12:30 AM and took 14.323 seconds ==========

@JonathanSalwan JonathanSalwan changed the base branch from master to dev-v1.0 July 30, 2023 07:58
@JonathanSalwan JonathanSalwan added this to the v1.0 milestone Jul 30, 2023
@cnheitman cnheitman merged commit 1f00afe into JonathanSalwan:dev-v1.0 Aug 8, 2023
25 of 27 checks passed
@ZehMatt ZehMatt deleted the msvc-parallel-build branch August 8, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants