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

Static linking the MSVC runtime #269

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

anmenaga
Copy link
Collaborator

PR Summary

Fix #256

This PR forces static linking of MSVC runtime to avoid errors like vcruntime140.dll was not found on clean Windows machines.
This uses rustflags/+crt-static.

Side note: beware of a bug in the area of static linking (looks like DSC project is not impacted by this at this point).

Fix was verified on a clean Windows Server 2022.

dsc/.cargo/config.toml Show resolved Hide resolved
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Nov 14, 2023
Merged via the queue into PowerShell:main with commit 5595cd1 Nov 14, 2023
4 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.

DSC executable doesn't run on Windows Server unless C++ redistributables are installed
2 participants