From b143cd9482276613488cbd3b3a28ec9693651f2a Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 30 Dec 2020 21:14:37 -0800 Subject: [PATCH] Enable debug info in Rust modules. This allows tombstones to be symbolized and is consistent with C/C++ where we pass -g. Bug: 173723155 Change-Id: I597e2bf97517407b428277f1cf7aa19b73371efa --- rust/config/global.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/config/global.go b/rust/config/global.go index 22d9567df..b7fff4a32 100644 --- a/rust/config/global.go +++ b/rust/config/global.go @@ -44,6 +44,7 @@ var ( GlobalRustFlags = []string{ "--remap-path-prefix $$(pwd)=", "-C codegen-units=1", + "-C debuginfo=2", "-C opt-level=3", "-C relocation-model=pic", }