Skip to content

Commit eb85ced

Browse files
committed
improve backtraces
1 parent ab1f60c commit eb85ced

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

miri

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ TARGET=$(rustc --print target-spec-json -Z unstable-options | jq '.["llvm-target
44
SYSROOT=$(rustc --print sysroot)
55
# We set the rpath so that Miri finds the private rustc libraries it needs.
66
# We enable debug-assertions to get tracing.
7-
export RUSTFLAGS="-C link-args=-Wl,-rpath,$SYSROOT/lib/rustlib/$TARGET/lib -C debug-assertions"
7+
# We enable line-only debuginfo for backtraces.
8+
export RUSTFLAGS="-C link-args=-Wl,-rpath,$SYSROOT/lib/rustlib/$TARGET/lib -C debug-assertions -C debuginfo=1"
89

910
COMMAND="$1"
1011
shift

0 commit comments

Comments
 (0)