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

Respect --static on Windows #14292

Merged

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Feb 11, 2024

Makes --static opt in to static linking on Windows. Also makes the Windows binaries dynamically linked.

Dynamic linking is now the default, and the -Dpreview_dll flag has no effect after this PR. Building a dynamically linked compiler from 1.11.x still needs this flag though, because the base compiler doesn't incorporate this PR yet.

Note that linking against vcruntime means that the VC++ Redistributable is now required to run the compiler. The GUI installer must later be able to detect its installation (e.g. via the registry key HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64\Installed).

@straight-shoota straight-shoota merged commit ee2d34c into crystal-lang:master Feb 20, 2024
57 checks passed
@HertzDevil HertzDevil deleted the feature/windows-static-flag branch February 20, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants