Skip to content

Commit f6361c0

Browse files
committed
Add check for compiling in panic=abort without debuginfo
1 parent fdb7254 commit f6361c0

File tree

6 files changed

+25
-1
lines changed

6 files changed

+25
-1
lines changed

Cargo.lock

+8-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ members = [
1313
"test_crates/throw_and_catch",
1414
"test_crates/catch_std_exception",
1515
"test_crates/std_catch_exception",
16+
"test_crates/panic_abort_no_debuginfo",
1617
]
1718

1819
[dependencies]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "panic_abort_no_debuginfo"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
unwinding = { path = "../../", features = ["panic"] }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -o pipefail
3+
export CARGO_TARGET_DIR=$(mktemp -d)
4+
trap "rm -rf $CARGO_TARGET_DIR" EXIT
5+
RUSTFLAGS="-Cpanic=abort -Cdebuginfo=0" ${CARGO:-cargo} build --release $BUILD_STD 2>&1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
extern crate unwinding;
2+
3+
fn main() {}

tests/compile_tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ fn main() {
88
"throw_and_catch",
99
"catch_std_exception",
1010
"std_catch_exception",
11+
"panic_abort_no_debuginfo",
1112
];
1213

1314
for test in tests {

0 commit comments

Comments
 (0)