File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --dist-compression-formats=xz"
9090if [ " $EXTERNAL_LLVM " = " " ]; then
9191 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set build.optimized-compiler-builtins"
9292 # Likewise, only demand we test all LLVM components if we know we built LLVM with them
93- export COMPILETEST_NEEDS_ALL_LLVM_COMPONENTS =1
93+ export COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS =1
9494elif [ " $DEPLOY$DEPLOY_ALT " = " 1" ]; then
9595 echo " error: dist builds should always use optimized compiler-rt!" >&2
9696 exit 1
Original file line number Diff line number Diff line change @@ -1436,7 +1436,7 @@ pub fn make_test_description<R: Read>(
14361436 if config. target == "wasm32-unknown-unknown" {
14371437 if config. parse_name_directive ( ln, directives:: CHECK_RUN_RESULTS ) {
14381438 decision ! ( IgnoreDecision :: Ignore {
1439- reason: "ignored when checking the run results on WASM " . into( ) ,
1439+ reason: "ignored on WASM as the run results cannot be checked there " . into( ) ,
14401440 } ) ;
14411441 }
14421442 }
@@ -1577,8 +1577,11 @@ fn ignore_llvm(config: &Config, line: &str) -> IgnoreDecision {
15771577 . split_whitespace ( )
15781578 . find ( |needed_component| !components. contains ( needed_component) )
15791579 {
1580- if env:: var_os ( "COMPILETEST_NEEDS_ALL_LLVM_COMPONENTS" ) . is_some ( ) {
1581- panic ! ( "missing LLVM component: {}" , missing_component) ;
1580+ if env:: var_os ( "COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS" ) . is_some ( ) {
1581+ panic ! (
1582+ "missing LLVM component {}, and COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS is set" ,
1583+ missing_component
1584+ ) ;
15821585 }
15831586 return IgnoreDecision :: Ignore {
15841587 reason : format ! ( "ignored when the {missing_component} LLVM component is missing" ) ,
Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ pub fn check(path: &Path, bad: &mut bool) {
9090 }
9191 if let Some ( llvm_components) = llvm_components {
9292 for component in llvm_components {
93+ // Ensure the given component even exists.
94+ // This is somewhat redundant with COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS,
95+ // but helps detect such problems earlier (PR CI rather than bors CI).
9396 if !KNOWN_LLVM_COMPONENTS . contains ( component) {
9497 eprintln ! (
9598 "{}: revision {} specifies unknown LLVM component `{}`" ,
You can’t perform that action at this time.
0 commit comments