Skip to content

Explicitly apply optimization flags to msvc compiler also on other profiles than debug#682

Merged
MarcusDunn merged 1 commit intoutilityai:mainfrom
nobodywho-ooo:fix-msvc-flags-release-profile
Feb 25, 2025
Merged

Explicitly apply optimization flags to msvc compiler also on other profiles than debug#682
MarcusDunn merged 1 commit intoutilityai:mainfrom
nobodywho-ooo:fix-msvc-flags-release-profile

Conversation

@AsbjornOlling
Copy link
Contributor

@AsbjornOlling AsbjornOlling commented Feb 25, 2025

This is all because of a bug in cmake-rs.

See #649 for discussion.

This reduced conditional was actually written by @babichjacob (see comment)

Before this PR, release builds for x86_64-pc-windows-msvc were significantly slower than debug builds.

With this PR, release profile builds also get the optimization flags passed into msvc explicitly.

This workaround may no longer be necessary if the relevant fixes get applied to cmake-rs.

@MarcusDunn MarcusDunn merged commit 8301d63 into utilityai:main Feb 25, 2025
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants