@@ -738,7 +738,7 @@ impl Build {
738738 /// Note that if LLVM is configured externally then the directory returned
739739 /// will likely be empty.
740740 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) {
742742 self . config . ci_llvm_root ( )
743743 } else {
744744 self . out . join ( target) . join ( "llvm" )
@@ -788,7 +788,7 @@ impl Build {
788788 fn is_system_llvm ( & self , target : TargetSelection ) -> bool {
789789 match self . config . target_config . get ( & target) {
790790 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) ;
792792 !ci_llvm
793793 }
794794 // We're building from the in-tree src/llvm-project sources.
@@ -1264,7 +1264,7 @@ Executed at: {executed_at}"#,
12641264 // need to use CXX compiler as linker to resolve the exception functions
12651265 // that are only existed in CXX libraries
12661266 Some ( self . cxx . borrow ( ) [ & target] . path ( ) . into ( ) )
1267- } else if !self . is_host_target ( & target)
1267+ } else if !self . is_builder_target ( & target)
12681268 && helpers:: use_host_linker ( target)
12691269 && !target. is_msvc ( )
12701270 {
@@ -1916,8 +1916,8 @@ to download LLVM rather than building it.
19161916 result
19171917 }
19181918
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 {
19211921 & self . config . build == target
19221922 }
19231923}
0 commit comments