File tree Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -156,10 +156,8 @@ fn main() {
156156 let cargo = rustc_info:: get_cargo_path ( ) ;
157157 let rustc = rustc_info:: get_rustc_path ( ) ;
158158 let rustdoc = rustc_info:: get_rustdoc_path ( ) ;
159- let triple = std:: env:: var ( "HOST_TRIPLE" )
160- . ok ( )
161- . or_else ( || config:: get_value ( "host" ) )
162- . unwrap_or_else ( || rustc_info:: get_host_triple ( & rustc) ) ;
159+ let triple =
160+ std:: env:: var ( "HOST_TRIPLE" ) . unwrap_or_else ( |_| rustc_info:: get_host_triple ( & rustc) ) ;
163161 Compiler {
164162 cargo,
165163 rustc,
@@ -170,10 +168,8 @@ fn main() {
170168 runner : vec ! [ ] ,
171169 }
172170 } ;
173- let target_triple = std:: env:: var ( "TARGET_TRIPLE" )
174- . ok ( )
175- . or_else ( || config:: get_value ( "target" ) )
176- . unwrap_or_else ( || bootstrap_host_compiler. triple . clone ( ) ) ;
171+ let target_triple =
172+ std:: env:: var ( "TARGET_TRIPLE" ) . unwrap_or_else ( |_| bootstrap_host_compiler. triple . clone ( ) ) ;
177173
178174 let dirs = path:: Dirs {
179175 source_dir : current_dir. clone ( ) ,
Original file line number Diff line number Diff line change 11# This file allows configuring the build system.
22
3- # Which triple to produce a compiler toolchain for.
4- #
5- # Defaults to the default triple of rustc on the host system.
6- #host = x86_64-unknown-linux-gnu
7-
8- # Which triple to build libraries (core/alloc/std/test/proc_macro) for.
9- #
10- # Defaults to `host`.
11- #target = x86_64-unknown-linux-gnu
12-
133# Disables cleaning of the sysroot dir. This will cause old compiled artifacts to be re-used when
144# the sysroot source hasn't changed. This is useful when the codegen backend hasn't been modified.
155# This option can be changed while the build system is already running for as long as sysroot
166# building hasn't started yet.
17- # keep_sysroot
7+ keep_sysroot
188
199
2010# Testsuite
You can’t perform that action at this time.
0 commit comments