Skip to content
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

Add --mcdc flag, and handle MC/DC fields correctly in LLVM JSON #383

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

Swatinem
Copy link
Contributor

This adds a new unstable --mcdc flag, similar to --branch.

Apart from that, the LLVM JSON parser also needed changes to recognize the mcdc-related fields, as it would otherwise silently drop those.


Clippy now rightfully complains that Workspace::new takes too many boolean parameters, so there surely is some more opportunity for improvement.

@Swatinem Swatinem force-pushed the mcdc branch 4 times, most recently from 994d950 to e9370d2 Compare August 21, 2024 11:14
@Swatinem
Copy link
Contributor Author

CI is segfaulting somewhere in the LLVM bindings, probably because mcdc support is broken in the compiler right now because of llvm 19 changes:
rust-lang/rust#126672 / rust-lang/rust#126733

I had no problem running things locally with a slightly older nightly (presumably pre llvm-19 update).

I’m okay with holding off until this is properly fixed in the compiler.

src/main.rs Show resolved Hide resolved
This adds a new unstable `--mcdc` flag, similar to `--branch`.

Apart from that, the LLVM JSON parser also needed changes to recognize the mcdc-related fields, as it would otherwise silently drop those.
@taiki-e
Copy link
Owner

taiki-e commented Oct 8, 2024

(rust-lang/rust#126733 has been merged and will be available in the next nightly.)

@taiki-e taiki-e merged commit 17fbf70 into taiki-e:main Oct 12, 2024
25 checks passed
@taiki-e
Copy link
Owner

taiki-e commented Oct 12, 2024

Published in 0.6.14. Thanks @Swatinem!

@Swatinem Swatinem deleted the mcdc branch October 12, 2024 12:22
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