File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,10 @@ impl ConfigInfo {
111
111
Some ( r) if !r. is_empty ( ) => r. to_string ( ) ,
112
112
_ => "rustc" . to_string ( ) ,
113
113
} ;
114
- self . host_triple = rustc_version_info ( Some ( & rustc) ) ?. host . unwrap_or_default ( ) ;
114
+ self . host_triple = match rustc_version_info ( Some ( & rustc) ) ?. host {
115
+ Some ( host) => host,
116
+ None => return Err ( "no host found" . to_string ( ) ) ,
117
+ } ;
115
118
116
119
if self . target_triple . is_empty ( ) {
117
120
if let Some ( overwrite) = env. get ( "OVERWRITE_TARGET_TRIPLE" ) {
@@ -216,6 +219,8 @@ impl ConfigInfo {
216
219
) ) ;
217
220
let ld_library_path = format ! (
218
221
"{target}:{sysroot}:{gcc_path}" ,
222
+ // FIXME: It's possible to pick another out directory. Would be nice to have a command
223
+ // line option to change it.
219
224
target = current_dir. join( "target/out" ) . display( ) ,
220
225
sysroot = sysroot. display( ) ,
221
226
) ;
You can’t perform that action at this time.
0 commit comments