We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bb4e25 commit e248523Copy full SHA for e248523
src/bootstrap/config.rs
@@ -821,7 +821,14 @@ impl Config {
821
.and_then(|output| if output.status.success() { Some(output) } else { None });
822
if let Some(output) = output {
823
let git_root = String::from_utf8(output.stdout).unwrap();
824
- config.src = PathBuf::from(git_root.trim().to_owned())
+ let git_root = PathBuf::from(git_root.trim()).canonicalize().unwrap();
825
+ let s = git_root.to_str().unwrap();
826
+
827
+ // Bootstrap is quite bad at handling /? in front of paths
828
+ config.src = match s.strip_prefix("\\\\?\\") {
829
+ Some(p) => PathBuf::from(p),
830
+ None => PathBuf::from(git_root),
831
+ };
832
} else {
833
// We're building from a tarball, not git sources.
834
// We don't support pre-downloaded bootstrap in this case.
0 commit comments