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 llvm-path option #354

Merged
merged 1 commit into from
Jan 2, 2024
Merged

add llvm-path option #354

merged 1 commit into from
Jan 2, 2024

Conversation

jonboh
Copy link
Contributor

@jonboh jonboh commented Jan 2, 2024

This allows the usage of an already installed llvm-profdata binary.
If the user does not provide an llvm-path cargo-fuzz will try to use the one installed through rustup component add llvm-tools-preview.
If that fails the same instructions to install llvm-tools-preview as before as shown.

The name of the option and the fact that a user should set it to the bin folder of an LLVM installation (not to the binary itself) follows the same convention as grcov.

Closes #353

Let me know if something needs to change, or if there's a reason why we should avoid allowing the user to set its own llvm-profdata

this allows the usage of an already installed llvm-profdata binary
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@fitzgen fitzgen merged commit 797740f into rust-fuzz:main Jan 2, 2024
1 check passed
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.

Add option to provide llvm-path in cargo fuzz coverage
2 participants