Skip to content

Commit

Permalink
FreeBSD support
Browse files Browse the repository at this point in the history
All that was needed was to add the default libclang_rt path for FreeBSD.
Tested on FreeBSD 11.0-RELEASE-p9 amd64 with rust 1.20.0 and 1.21.0.
  • Loading branch information
asomers committed Feb 27, 2018
1 parent 9265d15 commit d35ec97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
`cargo-cov` is a cargo subcommand which performs source coverage collection and reporting for Rust crates. `cargo-cov`
utilizes LLVM's gcov-compatible profile generation pass, and supports a lot of platforms.

* ✓ Linux, Windows (MSVC only), macOS
*FreeBSD, Linux, macOS, Windows (MSVC only)
* ✓ x86_64, x86
* ✓ Rust 1.17 — 1.20

Expand Down
3 changes: 3 additions & 0 deletions cargo-cov/src/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const PROFILER_GLOB_PATTERNS: &[&str] = &[
// Fedora "compiler-rt" package OpenSUSE / OpenSUSE "llvm-clang" package
"/usr/lib*/clang/*/lib/linux/",

// FreeBSD's base compiler, on most architectures
"/usr/lib*/clang/*/lib/freebsd/",

// macOS via Homebrew
"/usr/local/opt/llvm/lib/clang/*/lib/darwin/",

Expand Down

0 comments on commit d35ec97

Please sign in to comment.