Skip to content

Set crt_static_allow_dylibs to true for Emscripten target#152134

Open
hoodmane wants to merge 1 commit intorust-lang:mainfrom
hoodmane:emscripten-crt-static-allow-dylibs
Open

Set crt_static_allow_dylibs to true for Emscripten target#152134
hoodmane wants to merge 1 commit intorust-lang:mainfrom
hoodmane:emscripten-crt-static-allow-dylibs

Conversation

@hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Feb 4, 2026

And add a test. This is followup work to #151704. It introduced a regression where cargo is now unwilling to build cdylibs for Emscripten because crt_static_default is true but crt_static_allows_dylibs is false. Unfortunately the added test does not fail without the change because the validation logic is in Cargo, not in rustc. But it's good to have some coverage of this anyways.

And add a test. This is followup work to PR 151704. It introduced a regression where
cargo is now unwilling to build cdylibs for Emscripten because `crt_static_default` is
`true` but `crt_static_allows_dylibs` is `false`. Unfortunately the added test does not
fail without the change because the validation logic is in Cargo, not in rustc. But it's
good to have some coverage of this anyways.
@rustbot rustbot added the A-compiletest Area: The compiletest test runner label Feb 4, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 4, 2026

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 4, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 4, 2026

r? @mati865

rustbot has assigned @mati865.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@hoodmane
Copy link
Contributor Author

hoodmane commented Feb 4, 2026

r? @petrochenkov

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

Labels

A-compiletest Area: The compiletest test runner A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants