Skip to content

Commit 6facfe7

Browse files
committed
PERF: unpacked debuginfo is the default
1 parent 606c390 commit 6facfe7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/bootstrap/config.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ impl SplitDebuginfo {
326326
} else if target.contains("windows") {
327327
SplitDebuginfo::Packed
328328
} else {
329-
SplitDebuginfo::Off
329+
SplitDebuginfo::Unpacked
330330
}
331331
}
332332
}
@@ -887,11 +887,13 @@ impl Config {
887887
// We still support running outside the repository if we find we aren't in a git directory.
888888
cmd.arg("rev-parse").arg("--show-toplevel");
889889
// Discard stderr because we expect this to fail when building from a tarball.
890-
let output = cmd
891-
.stderr(std::process::Stdio::null())
892-
.output()
893-
.ok()
894-
.and_then(|output| if output.status.success() { Some(output) } else { None });
890+
let output = cmd.stderr(std::process::Stdio::null()).output().ok().and_then(|output| {
891+
if output.status.success() {
892+
Some(output)
893+
} else {
894+
None
895+
}
896+
});
895897
if let Some(output) = output {
896898
let git_root = String::from_utf8(output.stdout).unwrap();
897899
// We need to canonicalize this path to make sure it uses backslashes instead of forward slashes.

0 commit comments

Comments
 (0)