Skip to content

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).

@HertzDevil HertzDevil added kind:feature topic:infrastructure platform:windows Windows support based on the MSVC toolchain / Win32 API topic:compiler:cli labels Feb 11, 2024
@HertzDevil HertzDevil marked this pull request as ready for review February 12, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:feature platform:windows Windows support based on the MSVC toolchain / Win32 API topic:compiler:cli

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants