File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -721,7 +721,8 @@ impl Build {
721721 fn llvm_filecheck ( & self , target : & str ) -> PathBuf {
722722 let target_config = self . config . target_config . get ( target) ;
723723 if let Some ( s) = target_config. and_then ( |c| c. llvm_config . as_ref ( ) ) {
724- s. parent ( ) . unwrap ( ) . join ( exe ( "FileCheck" , target) )
724+ let llvm_bindir = output ( Command :: new ( s) . arg ( "--bindir" ) ) ;
725+ Path :: new ( llvm_bindir. trim ( ) ) . join ( exe ( "FileCheck" , target) )
725726 } else {
726727 let base = self . llvm_out ( & self . config . build ) . join ( "build" ) ;
727728 let exe = exe ( "FileCheck" , target) ;
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ pub fn check(build: &mut Build) {
143143 // Externally configured LLVM requires FileCheck to exist
144144 let filecheck = build. llvm_filecheck ( & build. config . build ) ;
145145 if !filecheck. starts_with ( & build. out ) && !filecheck. exists ( ) && build. config . codegen_tests {
146- panic ! ( "filecheck executable {:?} does not exist" , filecheck) ;
146+ panic ! ( "FileCheck executable {:?} does not exist" , filecheck) ;
147147 }
148148
149149 for target in build. config . target . iter ( ) {
You can’t perform that action at this time.
0 commit comments