File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,11 @@ fn test_sysroot_consistency() {
148
148
. unwrap_or_else ( |_| panic ! ( "Failed to canonicalize sysroot: {}" , stdout) )
149
149
}
150
150
151
- // We let the user skip this check if they really want to.
152
- // (`bootstrap` needs this because Miri gets built by the stage1 compiler
153
- // but run with the stage2 sysroot.)
154
- if std:: env:: var ( "MIRI_SKIP_SYSROOT_CHECK" ) . is_ok ( ) {
151
+ // Do not check sysroots if we got built as part of a Rust distribution.
152
+ // During `bootstrap`, the sysroot does not match anyway, and then some distros
153
+ // play symlink tricks so the sysroots may be different even for the final stage
154
+ // (see <https://github.com/mozilla/nixpkgs-mozilla/issues/198>).
155
+ if option_env ! ( "RUSTC_STAGE" ) . is_some ( ) {
155
156
return ;
156
157
}
157
158
You can’t perform that action at this time.
0 commit comments