From 84a61231c8a84b34d7557dccf27f760f6e981851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Sun, 9 Jun 2024 08:56:30 -0700 Subject: [PATCH] Enable line tables for CI Rust artifacts With debug information completely disabled in CI, we lack potentially important source code line information should a test panic and we see a backtrace. To make it easier to debug such problems when only a backtrace is available, include line tables in the Rust artifacts so that we also see source code file names and line numbers. --- .github/workflows/test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7113fef9f..93ae9551c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,13 +11,13 @@ on: env: CARGO_TERM_COLOR: always RUST_BACKTRACE: 1 - # Build without debug information enabled to decrease compilation time - # and binary sizes in CI. This option is assumed to only have marginal - # effects on the generated code, likely only in terms of section - # arrangement. See + # Build with only line information enabled to decrease compilation + # time and binary sizes in CI. This option is assumed to only have + # marginal effects on the generated code, likely only in terms of + # section arrangement. See # https://doc.rust-lang.org/cargo/reference/environment-variables.html # https://doc.rust-lang.org/rustc/codegen-options/index.html#debuginfo - RUSTFLAGS: '-C debuginfo=0' + RUSTFLAGS: '-C debuginfo=line-tables-only' jobs: build: