File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ impl SplitDebuginfo {
326
326
} else if target. contains ( "windows" ) {
327
327
SplitDebuginfo :: Packed
328
328
} else {
329
- SplitDebuginfo :: Off
329
+ SplitDebuginfo :: Unpacked
330
330
}
331
331
}
332
332
}
@@ -887,11 +887,13 @@ impl Config {
887
887
// We still support running outside the repository if we find we aren't in a git directory.
888
888
cmd. arg ( "rev-parse" ) . arg ( "--show-toplevel" ) ;
889
889
// 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
+ } ) ;
895
897
if let Some ( output) = output {
896
898
let git_root = String :: from_utf8 ( output. stdout ) . unwrap ( ) ;
897
899
// We need to canonicalize this path to make sure it uses backslashes instead of forward slashes.
You can’t perform that action at this time.
0 commit comments