Skip to content

link libunwind dynamically and allow controlling it via crt-static on gnullvm targets#122003

Merged
bors merged 1 commit into
rust-lang:masterfrom
mati865:gnullvm-build-libunwind
Dec 12, 2024
Merged

link libunwind dynamically and allow controlling it via crt-static on gnullvm targets#122003
bors merged 1 commit into
rust-lang:masterfrom
mati865:gnullvm-build-libunwind

Conversation

@mati865

@mati865 mati865 commented Mar 4, 2024

Copy link
Copy Markdown
Member

Alternative to #121794

$ cargo b -r
    Finished `release` profile [optimized] target(s) in 0.38s

$ ntldd target/release/hello.exe | rg unwind
        libunwind.dll => H:\msys64\clang64\bin\libunwind.dll (0x0000020c35df0000)

$ RUSTFLAGS="-C target-feature=+crt-static" cargo b -r
    Finished `release` profile [optimized] target(s) in 0.23s

$ ntldd target/release/hello.exe | rg unwind

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants