Skip to content

Commit 7e23244

Browse files
committed
HACK: Treat miri as if it were a submodule
1 parent 6cfa7ef commit 7e23244

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/check.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,9 @@ tool_check_step!(Rustdoc, "src/tools/rustdoc", "src/librustdoc", SourceType::InT
456456
// behavior, treat it as in-tree so that any new warnings in clippy will be
457457
// rejected.
458458
tool_check_step!(Clippy, "src/tools/clippy", SourceType::InTree);
459-
tool_check_step!(Miri, "src/tools/miri", SourceType::InTree);
459+
// Miri on the other hand is treated as out of tree, since InTree also causes it to
460+
// be run as part of `check`, which can fail on platforms which libffi-sys has no support for.
461+
tool_check_step!(Miri, "src/tools/miri", SourceType::Submodule);
460462
tool_check_step!(Rls, "src/tools/rls", SourceType::InTree);
461463
tool_check_step!(Rustfmt, "src/tools/rustfmt", SourceType::InTree);
462464

0 commit comments

Comments
 (0)