@@ -739,7 +739,7 @@ impl Build {
739
739
/// Note that if LLVM is configured externally then the directory returned
740
740
/// will likely be empty.
741
741
fn llvm_out ( & self , target : TargetSelection ) -> PathBuf {
742
- if self . config . llvm_from_ci && self . is_host_target ( & target) {
742
+ if self . config . llvm_from_ci && self . is_builder_target ( & target) {
743
743
self . config . ci_llvm_root ( )
744
744
} else {
745
745
self . out . join ( target) . join ( "llvm" )
@@ -789,7 +789,7 @@ impl Build {
789
789
fn is_system_llvm ( & self , target : TargetSelection ) -> bool {
790
790
match self . config . target_config . get ( & target) {
791
791
Some ( Target { llvm_config : Some ( _) , .. } ) => {
792
- let ci_llvm = self . config . llvm_from_ci && self . is_host_target ( & target) ;
792
+ let ci_llvm = self . config . llvm_from_ci && self . is_builder_target ( & target) ;
793
793
!ci_llvm
794
794
}
795
795
// We're building from the in-tree src/llvm-project sources.
@@ -1274,7 +1274,7 @@ Executed at: {executed_at}"#,
1274
1274
// need to use CXX compiler as linker to resolve the exception functions
1275
1275
// that are only existed in CXX libraries
1276
1276
Some ( self . cxx . borrow ( ) [ & target] . path ( ) . into ( ) )
1277
- } else if !self . is_host_target ( & target)
1277
+ } else if !self . is_builder_target ( & target)
1278
1278
&& helpers:: use_host_linker ( target)
1279
1279
&& !target. is_msvc ( )
1280
1280
{
@@ -1926,8 +1926,8 @@ to download LLVM rather than building it.
1926
1926
result
1927
1927
}
1928
1928
1929
- /// Checks if the given target is the same as the host target.
1930
- fn is_host_target ( & self , target : & TargetSelection ) -> bool {
1929
+ /// Checks if the given target is the same as the builder target.
1930
+ fn is_builder_target ( & self , target : & TargetSelection ) -> bool {
1931
1931
& self . config . build == target
1932
1932
}
1933
1933
}
0 commit comments