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

Distribute DLLs and import libraries on Windows #13543

Merged

Conversation

HertzDevil
Copy link
Contributor

This PR builds all DLLs and their import libraries, and bundles them as part of the unofficial nightly Windows artifacts. It also splits the single CI job into multiple jobs for better organization. (As a consequence, since different jobs may use runner images with different versions, it is no longer possible to include the MSVC version as part of the libraries' cache keys.)

The whole standard library, except for the LLVM components, should now work with -Dpreview_dll. LLVM is still built statically and with /MT, so std_spec will print a warning about mixed CRT library usage. To get rid of the warning, build a separate LLVM that uses -DLLVM_USE_CRT_RELEASE=MD instead, and point %LLVM_CONFIG% inside it. (To get rid of static linking altogether we must first port the remaining functions in llvm_ext.cc, because LLVM only exposes its C interface on Windows when DLLs are used.)

@straight-shoota straight-shoota added this to the 1.9.0 milestone Jun 5, 2023
@straight-shoota straight-shoota merged commit 4c31746 into crystal-lang:master Jun 6, 2023
@HertzDevil HertzDevil deleted the feature/windows-ci-dlls branch June 15, 2023 12:21
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
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.

2 participants