We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afbf061 commit 48e56f1Copy full SHA for 48e56f1
src/bootstrap/src/core/build_steps/tool.rs
@@ -166,6 +166,19 @@ pub fn prepare_tool_cargo(
166
}
167
168
169
+ if compiler.stage != 0 {
170
+ if path.ends_with("rls")
171
+ || path.ends_with("clippy")
172
+ || path.ends_with("miri")
173
+ || path.ends_with("rustfmt")
174
+ || path.ends_with("rustdoc")
175
+ || path.ends_with("rustdoc-tool")
176
+ {
177
+ cargo.rustflag("-Cpanic=abort");
178
+ cargo.rustflag("-Cforce-unwind-tables=yes");
179
+ }
180
181
+
182
// clippy tests need to know about the stage sysroot. Set them consistently while building to
183
// avoid rebuilding when running tests.
184
cargo.env("SYSROOT", builder.sysroot(compiler));
0 commit comments