@@ -738,7 +738,7 @@ impl Build {
738
738
/// Note that if LLVM is configured externally then the directory returned
739
739
/// will likely be empty.
740
740
fn llvm_out ( & self , target : TargetSelection ) -> PathBuf {
741
- if self . config . llvm_from_ci && self . is_host_target ( & target) {
741
+ if self . config . llvm_from_ci && self . is_builder_target ( & target) {
742
742
self . config . ci_llvm_root ( )
743
743
} else {
744
744
self . out . join ( target) . join ( "llvm" )
@@ -788,7 +788,7 @@ impl Build {
788
788
fn is_system_llvm ( & self , target : TargetSelection ) -> bool {
789
789
match self . config . target_config . get ( & target) {
790
790
Some ( Target { llvm_config : Some ( _) , .. } ) => {
791
- let ci_llvm = self . config . llvm_from_ci && self . is_host_target ( & target) ;
791
+ let ci_llvm = self . config . llvm_from_ci && self . is_builder_target ( & target) ;
792
792
!ci_llvm
793
793
}
794
794
// We're building from the in-tree src/llvm-project sources.
@@ -1264,7 +1264,7 @@ Executed at: {executed_at}"#,
1264
1264
// need to use CXX compiler as linker to resolve the exception functions
1265
1265
// that are only existed in CXX libraries
1266
1266
Some ( self . cxx . borrow ( ) [ & target] . path ( ) . into ( ) )
1267
- } else if !self . is_host_target ( & target)
1267
+ } else if !self . is_builder_target ( & target)
1268
1268
&& helpers:: use_host_linker ( target)
1269
1269
&& !target. is_msvc ( )
1270
1270
{
@@ -1916,8 +1916,8 @@ to download LLVM rather than building it.
1916
1916
result
1917
1917
}
1918
1918
1919
- /// Checks if the given target is the same as the host target.
1920
- fn is_host_target ( & self , target : & TargetSelection ) -> bool {
1919
+ /// Checks if the given target is the same as the builder target.
1920
+ fn is_builder_target ( & self , target : & TargetSelection ) -> bool {
1921
1921
& self . config . build == target
1922
1922
}
1923
1923
}
0 commit comments