Skip to content

Statically link Visual Studio redistributables on Windows builds#16602

Merged
philipp-spiess merged 8 commits intomainfrom
fix/windows-statically-link-clib
Feb 18, 2025
Merged

Statically link Visual Studio redistributables on Windows builds#16602
philipp-spiess merged 8 commits intomainfrom
fix/windows-statically-link-clib

Conversation

@philipp-spiess
Copy link
Contributor

@philipp-spiess philipp-spiess commented Feb 17, 2025

This PR statically links the C runtime on Windows builds so we no longer require installing Visual Studio redistributables.

Test plan

Relying on CI here to not break anything for Windows.

@philipp-spiess philipp-spiess requested a review from a team as a code owner February 17, 2025 15:13
@philipp-spiess
Copy link
Contributor Author

Screenshot 2025-02-17 at 13 05 25

Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure how to test this, but relying on CI builds makes sense 💪

Actually, I wonder why it works on CI and not in some environments from our users 🤔

@philipp-spiess
Copy link
Contributor Author

@RobinMalfait I suspect the CI runners have MSVC redistributables installed 🤔

@philipp-spiess philipp-spiess merged commit 23723e1 into main Feb 18, 2025
5 checks passed
@philipp-spiess philipp-spiess deleted the fix/windows-statically-link-clib branch February 18, 2025 12:45
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