rust-lang / rust-lang/rust

[windows-gnu]: allow dynamic crt use

Open
#137,389 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-feature-request O-windows-gnu
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

windows-gnullvm has support of dynamic crt which is controlled by crt-static target feature

after 1.85.0 update in msys2 crt-static is forced to true (while it's still controllable by RUSTFLAGS though) to prevent confusions as gnullvm compiler can link libunwind.dll dynamically

edit: fixed typo
edit(2025.05.25): we changed setting crt-static so it's actually static for gnullvm targets

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with compiler/rustc_target/src/spec/base/windows_gnullvm.rs and the crt-static target feature described in the issue. Review the current Windows GNU and gnullvm configuration alongside the referenced MSYS2 change; done means the intended dynamic CRT behavior for windows-gnu is supported without regressing the stated gnullvm static behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.