Unverified Commit 782f1662 authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

Turbopack: Add line numbers to debug info in release-with-assertions profile (#90474)

We use this profile in CI. Without debug symbols, we only get the line/column number of the panic, and we don't get line numbers in the whole backtrace: https://github.com/vercel/next.js/runs/64337217556#step:35:474

This can be difficult if the function in the backtrace that you care about is large.

This enables just enough debugging info in this profile for us to get line numbers in the backtrace.

https://doc.rust-lang.org/cargo/reference/profiles.html#debug
parent 61fa3c63
...@@ -269,12 +269,12 @@ opt-level = "s" ...@@ -269,12 +269,12 @@ opt-level = "s"
[profile.release.package.miette] [profile.release.package.miette]
opt-level = "s" opt-level = "s"
# Use a custom profile for CI where many tests are performance sensitive but we still want the additional validation of debug-assertions # Use a custom profile for CI where many tests are performance sensitive but we still want the additional validation of debug-assertions
[profile.release-with-assertions] [profile.release-with-assertions]
inherits = "release" inherits = "release"
debug-assertions = true debug-assertions = true
overflow-checks = true overflow-checks = true
debug = "line-tables-only"
[profile.release-with-debug] [profile.release-with-debug]
inherits = "release" inherits = "release"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment