-
-
Notifications
You must be signed in to change notification settings - Fork 19.7k
cargo-llvm-cov: init at 0.4.13 #185183
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
cargo-llvm-cov: init at 0.4.13 #185183
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { lib, rustPlatform, fetchCrate, fetchFromGitHub, libllvm, makeBinaryWrapper }: | ||
|
|
||
| rustPlatform.buildRustPackage rec { | ||
| pname = "cargo-llvm-cov"; | ||
| version = "0.4.14"; | ||
|
|
||
| src = fetchCrate { | ||
| inherit pname version; | ||
| sha256 = "sha256-DY5eBSx/PSmKaG7I6scDEbyZQ5hknA/pfl0KjTNqZlo="; | ||
| }; | ||
|
|
||
| postPatch = '' | ||
| rm tests/test.rs | ||
| ''; | ||
|
|
||
| nativeBuildInputs = [ makeBinaryWrapper ]; | ||
| buildInputs = [ libllvm ]; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this use the same libllvm as rustc (e.g.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if this is different because it's an older version, but I didn't need to add any
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, looks like libllvm was never required, at least on 0.4.13. @DieracDelta Do you remember why you added it, out of curiosity?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have no recollection of adding this. If it works without libllvm, then let's drop the dependency 👍 |
||
|
|
||
| LLVM_COV = "${rustPlatform.rust.rustc.llvmPackages.llvm}/bin/llvm-cov"; | ||
| LLVM_PROFDATA = "${rustPlatform.rust.rustc.llvmPackages.llvm}/bin/llvm-profdata"; | ||
|
winterqt marked this conversation as resolved.
|
||
|
|
||
| postInstall = '' | ||
| wrapProgram $out/bin/cargo-llvm-cov \ | ||
| --set LLVM_COV "${rustPlatform.rust.rustc.llvmPackages.llvm}/bin/llvm-cov" \ | ||
| --set LLVM_PROFDATA "${rustPlatform.rust.rustc.llvmPackages.llvm}/bin/llvm-profdata" | ||
|
winterqt marked this conversation as resolved.
|
||
| ''; | ||
|
|
||
| cargoSha256 = "sha256-MGI1wV0QEZRxea6Q3fh2TJVPmI4eb9O6/DwpKkWrToE="; | ||
|
|
||
| meta = with lib; { | ||
| description = "Cargo subcommand to gather source-based code coverage using LLVM"; | ||
| homepage = "https://github.com/taiki-e/cargo-llvm-cov"; | ||
| license = with licenses; [ mit asl20 ]; | ||
| maintainers = with maintainers; [ DieracDelta matthiasbeyer ]; | ||
| }; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.