-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Support building and testing std with panic=abort #84766
Copy link
Copy link
Open
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Metadata
Metadata
Assignees
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Type
Fields
Give feedbackNo fields configured for issues without a type.
panic=abortis needed in resource-constrained environments, wasm, and when building with the cranelift backend.Building and testing std with
panic=aborttoday is fraught for at least two reasons:panic=unwindis still needed for proc macros, so setting target-specific rustflags doesn't work if you want to do this on a host platform.In order to make this work, rustbuild should support this option directly and tests relying on unwinding need to be labelled with
needs-unwind.Given the number of tests this affects and the likelihood of regression, we may also want to test this configuration explicitly in CI. But the wasm builders would serve this purpose almost as well.