]> git.lizzy.rs Git - rust.git/commitdiff
Add prefix to config.toml
authorJeremy Soller <jackpot51@gmail.com>
Thu, 15 Dec 2016 17:08:06 +0000 (10:08 -0700)
committerJeremy Soller <jackpot51@gmail.com>
Thu, 15 Dec 2016 23:30:42 +0000 (16:30 -0700)
src/bootstrap/config.rs
src/bootstrap/config.toml.example

index 60f65f623006cac606deaba3b5042bd407b0ff4f..beb62ef20744c8a9fa60b853f9e08dcf5175ff05 100644 (file)
@@ -126,6 +126,7 @@ struct Build {
     target: Vec<String>,
     cargo: Option<String>,
     rustc: Option<String>,
+    prefix: Option<String>,
     compiler_docs: Option<bool>,
     docs: Option<bool>,
     submodules: Option<bool>,
@@ -238,6 +239,7 @@ pub fn parse(build: &str, file: Option<PathBuf>) -> Config {
         }
         config.rustc = build.rustc.map(PathBuf::from);
         config.cargo = build.cargo.map(PathBuf::from);
+        config.prefix = build.prefix;
         config.nodejs = build.nodejs.map(PathBuf::from);
         config.gdb = build.gdb.map(PathBuf::from);
         config.python = build.python.map(PathBuf::from);
index b6774b3af20a52af1f3a0e279ad69cd80fbaf9da..e1f0dac7ddbabd11aa16bb48792b60f83ef94028 100644 (file)
@@ -70,6 +70,9 @@
 # specified, use this rustc binary instead as the stage0 snapshot compiler.
 #rustc = "/path/to/bin/rustc"
 
+# Instead of installing installing to /usr/local, install to this path instead.
+#prefix = "/path/to/install"
+
 # Flag to specify whether any documentation is built. If false, rustdoc and
 # friends will still be compiled but they will not be used to generate any
 # documentation.