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
|
// run-pass
|
||||||
|
|
||||||
|
// compile-flags:-Cstrip=none
|
||||||
// compile-flags:-g -Csplit-debuginfo=unpacked
|
// compile-flags:-g -Csplit-debuginfo=unpacked
|
||||||
// only-macos
|
// only-macos
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
// ignore-sgx no processes
|
// ignore-sgx no processes
|
||||||
// ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
|
// ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
|
||||||
// compile-flags:-g
|
// compile-flags:-g
|
||||||
|
// compile-flags:-Cstrip=none
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
// run-fail
|
// run-fail
|
||||||
// error-pattern: overflow
|
// error-pattern: overflow
|
||||||
// compile-flags: -C overflow-checks=yes
|
// 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() {
|
fn main() {
|
||||||
let x: &'static u32 = &(0u32 - 1);
|
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:
|
stack backtrace:
|
||||||
0: std::panicking::begin_panic
|
0: std::panicking::begin_panic
|
||||||
1: issue_47429_short_backtraces::main
|
1: issue_47429_short_backtraces::main
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Regression test for #47429: short backtraces were not terminating correctly
|
// Regression test for #47429: short backtraces were not terminating correctly
|
||||||
|
|
||||||
// compile-flags: -O
|
// compile-flags: -O
|
||||||
|
// compile-flags:-Cstrip=none
|
||||||
// run-fail
|
// run-fail
|
||||||
// check-run-results
|
// check-run-results
|
||||||
// exec-env:RUST_BACKTRACE=1
|
// 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:
|
stack backtrace:
|
||||||
0: std::panicking::begin_panic::<&str>
|
0: std::panicking::begin_panic::<&str>
|
||||||
1: issue_47429_short_backtraces::main
|
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:
|
stack backtrace:
|
||||||
0: std::panicking::begin_panic
|
0: std::panicking::begin_panic
|
||||||
1: runtime_switch::main
|
1: runtime_switch::main
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Test for std::panic::set_backtrace_style.
|
// Test for std::panic::set_backtrace_style.
|
||||||
|
|
||||||
// compile-flags: -O
|
// compile-flags: -O
|
||||||
|
// compile-flags:-Cstrip=none
|
||||||
// run-fail
|
// run-fail
|
||||||
// check-run-results
|
// check-run-results
|
||||||
// exec-env:RUST_BACKTRACE=0
|
// 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:
|
stack backtrace:
|
||||||
0: std::panicking::begin_panic::<&str>
|
0: std::panicking::begin_panic::<&str>
|
||||||
1: runtime_switch::main
|
1: runtime_switch::main
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
// run-fail
|
// run-fail
|
||||||
// error-pattern: panic
|
// 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() {
|
fn main() {
|
||||||
Box::new(panic!());
|
Box::new(panic!());
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
// compile-flags:-g -Copt-level=0 -Cllvm-args=-enable-tail-merge=0
|
// compile-flags:-g -Copt-level=0 -Cllvm-args=-enable-tail-merge=0
|
||||||
// compile-flags:-Cforce-frame-pointers=yes
|
// compile-flags:-Cforce-frame-pointers=yes
|
||||||
|
// compile-flags:-Cstrip=none
|
||||||
// ignore-pretty issue #37195
|
// ignore-pretty issue #37195
|
||||||
// ignore-emscripten spawning processes is not supported
|
// ignore-emscripten spawning processes is not supported
|
||||||
// ignore-sgx no processes
|
// ignore-sgx no processes
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
// ignore-sgx no processes
|
// ignore-sgx no processes
|
||||||
// ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
|
// ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
|
||||||
// compile-flags:-g
|
// compile-flags:-g
|
||||||
|
// compile-flags:-Cstrip=none
|
||||||
|
|
||||||
#![feature(backtrace)]
|
#![feature(backtrace)]
|
||||||
|
|
||||||
|
@ -1882,6 +1882,8 @@ fn make_compile_args(
|
|||||||
rustc.arg("-Ccodegen-units=1");
|
rustc.arg("-Ccodegen-units=1");
|
||||||
rustc.arg("-Zui-testing");
|
rustc.arg("-Zui-testing");
|
||||||
rustc.arg("-Zdeduplicate-diagnostics=no");
|
rustc.arg("-Zdeduplicate-diagnostics=no");
|
||||||
|
// FIXME: use this for other modes too, for perf?
|
||||||
|
rustc.arg("-Cstrip=debuginfo");
|
||||||
}
|
}
|
||||||
MirOpt => {
|
MirOpt => {
|
||||||
rustc.args(&[
|
rustc.args(&[
|
||||||
|
Loading…
Reference in New Issue
Block a user