summaryrefslogtreecommitdiff
path: root/lang/rust/files/patch-src_bootstrap_compile.rs
blob: 126656a59c9b41c8221462dce58e04a09e1de574 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/bootstrap/compile.rs.orig	2017-02-09 01:37:48 UTC
+++ src/bootstrap/compile.rs
@@ -187,7 +187,7 @@ pub fn rustc<'a>(build: &'a Build, targe
     cargo.env("CFG_RELEASE", &build.release)
          .env("CFG_RELEASE_CHANNEL", &build.config.channel)
          .env("CFG_VERSION", &build.version)
-         .env("CFG_PREFIX", build.config.prefix.clone().unwrap_or(String::new()))
+         .env("CFG_PREFIX", build.config.prefix.clone().unwrap_or(PathBuf::new()))
          .env("CFG_LIBDIR_RELATIVE", "lib");
 
     // If we're not building a compiler with debugging information then remove