Add prefix to config.toml

This commit is contained in:
Jeremy Soller 2016-12-15 10:08:06 -07:00
parent 8f02c429ad
commit 897cf9bba0
2 changed files with 5 additions and 0 deletions

View 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 @@ 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);

View 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.