Skip to content

Commit 897cf9b

Browse files
committed
Add prefix to config.toml
1 parent 8f02c42 commit 897cf9b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/bootstrap/config.rs

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ struct Build {
126126
target: Vec<String>,
127127
cargo: Option<String>,
128128
rustc: Option<String>,
129+
prefix: Option<String>,
129130
compiler_docs: Option<bool>,
130131
docs: Option<bool>,
131132
submodules: Option<bool>,
@@ -238,6 +239,7 @@ impl Config {
238239
}
239240
config.rustc = build.rustc.map(PathBuf::from);
240241
config.cargo = build.cargo.map(PathBuf::from);
242+
config.prefix = build.prefix;
241243
config.nodejs = build.nodejs.map(PathBuf::from);
242244
config.gdb = build.gdb.map(PathBuf::from);
243245
config.python = build.python.map(PathBuf::from);

src/bootstrap/config.toml.example

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
# specified, use this rustc binary instead as the stage0 snapshot compiler.
7171
#rustc = "/path/to/bin/rustc"
7272

73+
# Instead of installing installing to /usr/local, install to this path instead.
74+
#prefix = "/path/to/install"
75+
7376
# Flag to specify whether any documentation is built. If false, rustdoc and
7477
# friends will still be compiled but they will not be used to generate any
7578
# documentation.

0 commit comments

Comments
 (0)