File tree 1 file changed +9
-0
lines changed
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 {
2524
2524
fn run ( self , builder : & Builder < ' _ > ) -> Option < PathBuf > {
2525
2525
let target = self . target ;
2526
2526
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
+
2527
2535
builder. info ( & format ! ( "Dist RustDev ({})" , target) ) ;
2528
2536
let _time = timeit ( builder) ;
2529
2537
let src = builder. src . join ( "src/llvm-project/llvm" ) ;
@@ -2536,6 +2544,7 @@ impl Step for RustDev {
2536
2544
// Prepare the image directory
2537
2545
let dst_bindir = image. join ( "bin" ) ;
2538
2546
t ! ( fs:: create_dir_all( & dst_bindir) ) ;
2547
+
2539
2548
let exe = builder. llvm_out ( target) . join ( "bin" ) . join ( exe ( "llvm-config" , target) ) ;
2540
2549
builder. install ( & exe, & dst_bindir, 0o755 ) ;
2541
2550
builder. install ( & builder. llvm_filecheck ( target) , & dst_bindir, 0o755 ) ;
You can’t perform that action at this time.
0 commit comments