Skip to content

Commit

Permalink
gcovr: remove hardcoded cc reference
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Jan 24, 2023
1 parent 22c0670 commit df6c998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/gcovr.rb
Expand Up @@ -51,8 +51,8 @@ def install

test do
(testpath/"example.c").write "int main() { return 0; }"
system "cc", "-fprofile-arcs", "-ftest-coverage", "-fPIC", "-O0", "-o",
"example", "example.c"
system ENV.cc, "-fprofile-arcs", "-ftest-coverage", "-fPIC", "-O0", "-o",
"example", "example.c"
assert_match "Code Coverage Report", shell_output("#{bin}/gcovr -r .")
end
end

0 comments on commit df6c998

Please sign in to comment.