File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ if [ "$RUST_RELEASE_CHANNEL" = "nightly" ] || [ "$DIST_REQUIRE_ALL_TOOLS" = "" ]
104
104
RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-missing-tools"
105
105
fi
106
106
107
+ export COMPILETEST_NEEDS_ALL_LLVM_COMPONENTS=1
108
+
107
109
# Print the date from the local machine and the date from an external source to
108
110
# check for clock drifts. An HTTP URL is used instead of HTTPS since on Azure
109
111
# Pipelines it happened that the certificates were marked as expired.
Original file line number Diff line number Diff line change @@ -208,10 +208,13 @@ impl EarlyProps {
208
208
config. parse_name_value_directive ( line, "needs-llvm-components" )
209
209
{
210
210
let components: HashSet < _ > = config. llvm_components . split_whitespace ( ) . collect ( ) ;
211
- if ! needed_components
211
+ if let Some ( missing_component ) = needed_components
212
212
. split_whitespace ( )
213
- . all ( |needed_component| components. contains ( needed_component) )
213
+ . find ( |needed_component| ! components. contains ( needed_component) )
214
214
{
215
+ if env:: var_os ( "COMPILETEST_NEEDS_ALL_LLVM_COMPONENTS" ) . is_some ( ) {
216
+ panic ! ( "missing LLVM component: {}" , missing_component) ;
217
+ }
215
218
return true ;
216
219
}
217
220
}
You can’t perform that action at this time.
0 commit comments