Merge pull request #1 from mubarak23/remove-debug-info

remove debug info from emitting
This commit is contained in:
antoyo 2024-03-19 09:27:02 -04:00 committed by GitHub
commit 17abfa7041
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -18,5 +18,5 @@ rustc-std-workspace-alloc = { path = "./sysroot_src/library/rustc-std-workspace-
rustc-std-workspace-std = { path = "./sysroot_src/library/rustc-std-workspace-std" } rustc-std-workspace-std = { path = "./sysroot_src/library/rustc-std-workspace-std" }
[profile.release] [profile.release]
debug = true debug = "limited"
#lto = "fat" # TODO(antoyo): re-enable when the failing LTO tests regarding proc-macros are fixed. #lto = "fat" # TODO(antoyo): re-enable when the failing LTO tests regarding proc-macros are fixed.

View File

@ -424,7 +424,7 @@ pub fn setup(
rustflags.push("-Csymbol-mangling-version=v0".to_string()); rustflags.push("-Csymbol-mangling-version=v0".to_string());
} }
rustflags.push("-Cdebuginfo=2".to_string());
// Since we don't support ThinLTO, disable LTO completely when not trying to do LTO. // Since we don't support ThinLTO, disable LTO completely when not trying to do LTO.
// TODO(antoyo): remove when we can handle ThinLTO. // TODO(antoyo): remove when we can handle ThinLTO.