Commit 88b79e8
committed
Make rustc implicitly use panic=abort for the panic_abort crate
The panic_abort crate must be compiled with panic=abort, but cargo
doesn't allow setting the panic strategy for a single crate. Bootstrap
handles this in its rustc wrapper, but for example the build systems of
cg_clif and cg_gcc don't use a rustc wrapper, so they would either need
to add one or be unable to build a sysroot suitable for both panic=abort
and panic=unwind (as is currently the case).1 parent 7f69523 commit 88b79e8
File tree
2 files changed
+7
-1
lines changed- compiler/rustc_session/src
- src/bootstrap/src/bin
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
707 | 712 | | |
708 | 713 | | |
709 | 714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
0 commit comments