Skip to content

Commit

Permalink
PERF: unpacked debuginfo by default on linux
Browse files Browse the repository at this point in the history
Signed-off-by: David Wood <david.wood@huawei.com>
  • Loading branch information
davidtwco committed Apr 19, 2022
1 parent d5ae66c commit eb62f83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/rustc_target/src/spec/linux_base.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::spec::{cvs, RelroLevel, TargetOptions};
use crate::spec::{cvs, RelroLevel, SplitDebuginfo, TargetOptions};

pub fn opts() -> TargetOptions {
TargetOptions {
Expand All @@ -11,6 +11,8 @@ pub fn opts() -> TargetOptions {
relro_level: RelroLevel::Full,
has_thread_local: true,
crt_static_respected: true,
// PERF EXPERIMENT
split_debuginfo: SplitDebuginfo::Unpacked,
..Default::default()
}
}

0 comments on commit eb62f83

Please sign in to comment.