Skip to content

Add support for building and linking against genmc #4498

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 2 commits into from
Jul 27, 2025

Conversation

RalfJung
Copy link
Member

This is #4453 with some minor changes from my side.

@rustbot
Copy link
Collaborator

rustbot commented Jul 27, 2025

Thank you for contributing to Miri!
Please remember to not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Jul 27, 2025
@RalfJung RalfJung enabled auto-merge July 27, 2025 14:40
@Patrick-6
Copy link
Contributor

LGTM, we just need to make sure to add the platform checks once the actual functionality is added.

@RalfJung
Copy link
Member Author

Which platform checks? src/concurrency/genmc/config.rs only gets built when genmc is supported so it makes no sense to check the platform inside of it.

Comment on lines 22 to 31
if !cfg!(all(
feature = "genmc",
any(target_os = "linux", target_os = "macos"),
target_pointer_width = "64",
target_endian = "little"
)) {
unimplemented!(
"GenMC mode is not supported on this platform, cannot handle argument: \"-Zmiri-genmc{trimmed_arg}\""
);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These checks. Maybe we could put them here in miri.rs?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, no, the dummy version will be used on unsupported platforms, it is ok then.

@RalfJung RalfJung added this pull request to the merge queue Jul 27, 2025
Merged via the queue into rust-lang:master with commit a9b8be4 Jul 27, 2025
14 checks passed
@RalfJung RalfJung deleted the genmc-build branch July 27, 2025 15:36
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Jul 27, 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.

3 participants