Commit 7e58a46
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 86d0aef commit 7e58a46
File tree
2 files changed
+5
-12
lines changed- compiler/rustc_session/src
- src/bootstrap/src/bin
2 files changed
+5
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
696 | 701 | | |
697 | 702 | | |
698 | 703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | 154 | | |
167 | 155 | | |
168 | 156 | | |
| |||
0 commit comments