File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2524,6 +2524,14 @@ impl Step for RustDev {
25242524 fn run ( self , builder : & Builder < ' _ > ) -> Option < PathBuf > {
25252525 let target = self . target ;
25262526
2527+ /* run only if llvm-config isn't used */
2528+ if let Some ( config) = builder. config . target_config . get ( & target) {
2529+ if let Some ( ref _s) = config. llvm_config {
2530+ builder. info ( & format ! ( "Skipping RustDev ({}): external LLVM" , target) ) ;
2531+ return None ;
2532+ }
2533+ }
2534+
25272535 builder. info ( & format ! ( "Dist RustDev ({})" , target) ) ;
25282536 let _time = timeit ( builder) ;
25292537 let src = builder. src . join ( "src/llvm-project/llvm" ) ;
@@ -2536,6 +2544,7 @@ impl Step for RustDev {
25362544 // Prepare the image directory
25372545 let dst_bindir = image. join ( "bin" ) ;
25382546 t ! ( fs:: create_dir_all( & dst_bindir) ) ;
2547+
25392548 let exe = builder. llvm_out ( target) . join ( "bin" ) . join ( exe ( "llvm-config" , target) ) ;
25402549 builder. install ( & exe, & dst_bindir, 0o755 ) ;
25412550 builder. install ( & builder. llvm_filecheck ( target) , & dst_bindir, 0o755 ) ;
You can’t perform that action at this time.
0 commit comments