Skip to content

Build Miri for Rust #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025
Merged

Conversation

narpfel
Copy link
Contributor

@narpfel narpfel commented May 23, 2025

Miri needs a special pre-built standard library which is normally built on-demand when using cargo miri and cached locally. This standard library needs to match the exact nightly version of the compiler. The rest of Miri is already installed by ./bin/ce_install ....

This PR builds this sysroot for all architectures. If this is too much (due to storage/build time requirements), this could be restricted to the more common architectures.

Because the sysroot/standard library version must exactly match the compiler version, this build includes the full Rust nightly compiler (so there are no conflicts depending on when Miri and Rust nightly are updated on the runners).

Building the sysroot needs the Rust standard library sources, so this PR requires compiler-explorer/infra#1630.

See compiler-explorer/compiler-explorer#2563.

@mattgodbolt
Copy link
Member

Let's give this a go :) Thanks!

@mattgodbolt mattgodbolt merged commit eade55a into compiler-explorer:main May 27, 2025
@mattgodbolt
Copy link
Member

one missing thing; I'll add...

@narpfel
Copy link
Contributor Author

narpfel commented May 27, 2025

one missing thing; I'll add...

Thanks for catching that!

@narpfel narpfel deleted the rust-miri branch May 27, 2025 19:58
mattgodbolt pushed a commit to compiler-explorer/compiler-explorer that referenced this pull request May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants