File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/bootstrap/src/core/builder Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -524,6 +524,23 @@ mod dist {
524524 ) ;
525525 }
526526
527+ #[ test]
528+ fn llvm_out_behaviour ( ) {
529+ let mut config = configure ( & [ "A" ] , & [ "B" ] ) ;
530+ config. llvm_from_ci = true ;
531+ let build = Build :: new ( config. clone ( ) ) ;
532+
533+ let target = TargetSelection :: from_user ( "A" ) ;
534+ assert ! ( build. llvm_out( target) . ends_with( "ci-llvm" ) ) ;
535+ let target = TargetSelection :: from_user ( "B" ) ;
536+ assert ! ( build. llvm_out( target) . ends_with( "llvm" ) ) ;
537+
538+ config. llvm_from_ci = false ;
539+ let build = Build :: new ( config. clone ( ) ) ;
540+ let target = TargetSelection :: from_user ( "A" ) ;
541+ assert ! ( build. llvm_out( target) . ends_with( "llvm" ) ) ;
542+ }
543+
527544 #[ test]
528545 fn build_with_empty_host ( ) {
529546 let config = configure ( & [ ] , & [ "C" ] ) ;
You can’t perform that action at this time.
0 commit comments