about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeremy Soller <jackpot51@gmail.com>2016-12-15 10:08:06 -0700
committerJeremy Soller <jackpot51@gmail.com>2016-12-15 16:30:42 -0700
commit897cf9bba0866edf878a04f0bc408c9ebcb3e61d (patch)
treeb694a006fcc1e3e1d8b91027674e9f64180c2d8e
parent8f02c429ad3e2ad687a222d1daae2e04bb9bb876 (diff)
downloadrust-897cf9bba0866edf878a04f0bc408c9ebcb3e61d.tar.gz
rust-897cf9bba0866edf878a04f0bc408c9ebcb3e61d.zip
Add prefix to config.toml
-rw-r--r--src/bootstrap/config.rs2
-rw-r--r--src/bootstrap/config.toml.example3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs
index 60f65f62300..beb62ef2074 100644
--- a/src/bootstrap/config.rs
+++ b/src/bootstrap/config.rs
@@ -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 @@ impl 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);
diff --git a/src/bootstrap/config.toml.example b/src/bootstrap/config.toml.example
index b6774b3af20..e1f0dac7ddb 100644
--- a/src/bootstrap/config.toml.example
+++ b/src/bootstrap/config.toml.example
@@ -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.