This repository was archived by the owner on May 28, 2025. It is now read-only.
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"
90
90
if [ " $EXTERNAL_LLVM " = " " ]; then
91
91
RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set build.optimized-compiler-builtins"
92
92
# 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
94
94
elif [ " $DEPLOY$DEPLOY_ALT " = " 1" ]; then
95
95
echo " error: dist builds should always use optimized compiler-rt!" >&2
96
96
exit 1
Original file line number Diff line number Diff line change @@ -1436,7 +1436,7 @@ pub fn make_test_description<R: Read>(
1436
1436
if config. target == "wasm32-unknown-unknown" {
1437
1437
if config. parse_name_directive ( ln, directives:: CHECK_RUN_RESULTS ) {
1438
1438
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( ) ,
1440
1440
} ) ;
1441
1441
}
1442
1442
}
@@ -1577,8 +1577,11 @@ fn ignore_llvm(config: &Config, line: &str) -> IgnoreDecision {
1577
1577
. split_whitespace ( )
1578
1578
. find ( |needed_component| !components. contains ( needed_component) )
1579
1579
{
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
+ ) ;
1582
1585
}
1583
1586
return IgnoreDecision :: Ignore {
1584
1587
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) {
90
90
}
91
91
if let Some ( llvm_components) = llvm_components {
92
92
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).
93
96
if !KNOWN_LLVM_COMPONENTS . contains ( component) {
94
97
eprintln ! (
95
98
"{}: revision {} specifies unknown LLVM component `{}`" ,
You can’t perform that action at this time.
0 commit comments