Skip to content

Commit

Permalink
Restore debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Aug 31, 2020
1 parent 01061dc commit e8eb5b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ path = "src/rust/lib.rs"

[profile.dev]
lto = false
# XXX: 2 -> removes debug information in later rust verions
# 0 -> requires more imports that are optimised away
opt-level = 2
panic = "abort"
overflow-checks = false
Expand Down
5 changes: 4 additions & 1 deletion tools/rust-lld-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ def main():
args = sys.argv[1:]

# filter out args inserted by rustc
TO_REMOVE = {"--stack-first"}
TO_REMOVE = {
"--stack-first",
"--strip-debug", # TODO: Make this configurable
}
args = list(filter(lambda arg: arg not in TO_REMOVE, args))

lld = find_rust_lld()
Expand Down

0 comments on commit e8eb5b9

Please sign in to comment.