File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -721,7 +721,8 @@ impl Build {
721
721
fn llvm_filecheck ( & self , target : & str ) -> PathBuf {
722
722
let target_config = self . config . target_config . get ( target) ;
723
723
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) )
725
726
} else {
726
727
let base = self . llvm_out ( & self . config . build ) . join ( "build" ) ;
727
728
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) {
143
143
// Externally configured LLVM requires FileCheck to exist
144
144
let filecheck = build. llvm_filecheck ( & build. config . build ) ;
145
145
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) ;
147
147
}
148
148
149
149
for target in build. config . target . iter ( ) {
You can’t perform that action at this time.
0 commit comments