Skip to content

Add a feature to remove the static initializer on Linux/GNU#111920

Closed
danakj wants to merge 1 commit into
rust-lang:masterfrom
danakj:staticinit
Closed

Add a feature to remove the static initializer on Linux/GNU#111920
danakj wants to merge 1 commit into
rust-lang:masterfrom
danakj:staticinit

Conversation

@danakj

@danakj danakj commented May 24, 2023

Copy link
Copy Markdown
Contributor

The explicit-init-args-with-glibc feature will disable the static initializer that is used on Linux with glibc to initialize std::env::args. The result is that the args will be empty in a cdylib on this platform.

The feature is off by default, so there is no change to any Rust users unless they build stdlib themselves and turn the feature on explicitly.

The `explicit-init-args-with-glibc` feature will disable
the static initializer that is used on Linux with glibc
to initialize `std::env::args`. The result is that the
args will be empty in a cdylib on this platform.

The feature is off by default, so there is no change to
any Rust users unless they build stdlib themselves and
turn the feature on explicitly.
@rustbot

rustbot commented May 24, 2023

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 24, 2023
@the8472

the8472 commented Jun 1, 2023

Copy link
Copy Markdown
Member

Closing this since it was rejected in the associated issue

@the8472 the8472 closed this Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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.

4 participants