use -Cstrip=debuginfo
with ui tests to reduce disk space usage
This commit is contained in:
parent
89a0783f1c
commit
18ed1fa129
@ -1,5 +1,6 @@
|
||||
// run-pass
|
||||
|
||||
// compile-flags:-Cstrip=none
|
||||
// compile-flags:-g -Csplit-debuginfo=unpacked
|
||||
// only-macos
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
// ignore-sgx no processes
|
||||
// ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
|
||||
// compile-flags:-g
|
||||
// compile-flags:-Cstrip=none
|
||||
|
||||
use std::env;
|
||||
use std::process::{Command, Stdio};
|
||||
|
@ -3,6 +3,10 @@
|
||||
// run-fail
|
||||
// error-pattern: overflow
|
||||
// compile-flags: -C overflow-checks=yes
|
||||
// for some reason, fails to match error string on
|
||||
// wasm32-unknown-unknown with stripped debuginfo and symbols,
|
||||
// so don't strip it
|
||||
// compile-flags:-Cstrip=none
|
||||
|
||||
fn main() {
|
||||
let x: &'static u32 = &(0u32 - 1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
thread 'main' panicked at 'explicit panic', $DIR/issue-47429-short-backtraces.rs:21:5
|
||||
thread 'main' panicked at 'explicit panic', $DIR/issue-47429-short-backtraces.rs:22:5
|
||||
stack backtrace:
|
||||
0: std::panicking::begin_panic
|
||||
1: issue_47429_short_backtraces::main
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Regression test for #47429: short backtraces were not terminating correctly
|
||||
|
||||
// compile-flags: -O
|
||||
// compile-flags:-Cstrip=none
|
||||
// run-fail
|
||||
// check-run-results
|
||||
// exec-env:RUST_BACKTRACE=1
|
||||
|
@ -1,4 +1,4 @@
|
||||
thread 'main' panicked at 'explicit panic', $DIR/issue-47429-short-backtraces.rs:21:5
|
||||
thread 'main' panicked at 'explicit panic', $DIR/issue-47429-short-backtraces.rs:22:5
|
||||
stack backtrace:
|
||||
0: std::panicking::begin_panic::<&str>
|
||||
1: issue_47429_short_backtraces::main
|
||||
|
@ -1,4 +1,4 @@
|
||||
thread 'main' panicked at 'explicit panic', $DIR/runtime-switch.rs:24:5
|
||||
thread 'main' panicked at 'explicit panic', $DIR/runtime-switch.rs:25:5
|
||||
stack backtrace:
|
||||
0: std::panicking::begin_panic
|
||||
1: runtime_switch::main
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Test for std::panic::set_backtrace_style.
|
||||
|
||||
// compile-flags: -O
|
||||
// compile-flags:-Cstrip=none
|
||||
// run-fail
|
||||
// check-run-results
|
||||
// exec-env:RUST_BACKTRACE=0
|
||||
|
@ -1,4 +1,4 @@
|
||||
thread 'main' panicked at 'explicit panic', $DIR/runtime-switch.rs:24:5
|
||||
thread 'main' panicked at 'explicit panic', $DIR/runtime-switch.rs:25:5
|
||||
stack backtrace:
|
||||
0: std::panicking::begin_panic::<&str>
|
||||
1: runtime_switch::main
|
||||
|
@ -1,5 +1,9 @@
|
||||
// run-fail
|
||||
// error-pattern: panic
|
||||
// for some reason, fails to match error string on
|
||||
// wasm32-unknown-unknown with stripped debuginfo and symbols,
|
||||
// so don't strip it
|
||||
// compile-flags:-Cstrip=none
|
||||
|
||||
fn main() {
|
||||
Box::new(panic!());
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
// compile-flags:-g -Copt-level=0 -Cllvm-args=-enable-tail-merge=0
|
||||
// compile-flags:-Cforce-frame-pointers=yes
|
||||
// compile-flags:-Cstrip=none
|
||||
// ignore-pretty issue #37195
|
||||
// ignore-emscripten spawning processes is not supported
|
||||
// ignore-sgx no processes
|
||||
|
@ -5,6 +5,7 @@
|
||||
// ignore-sgx no processes
|
||||
// ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
|
||||
// compile-flags:-g
|
||||
// compile-flags:-Cstrip=none
|
||||
|
||||
#![feature(backtrace)]
|
||||
|
||||
|
@ -1882,6 +1882,8 @@ fn make_compile_args(
|
||||
rustc.arg("-Ccodegen-units=1");
|
||||
rustc.arg("-Zui-testing");
|
||||
rustc.arg("-Zdeduplicate-diagnostics=no");
|
||||
// FIXME: use this for other modes too, for perf?
|
||||
rustc.arg("-Cstrip=debuginfo");
|
||||
}
|
||||
MirOpt => {
|
||||
rustc.args(&[
|
||||
|
Loading…
Reference in New Issue
Block a user