Skip to content

Comments

build: add options for forced LLVM and kcov coverage#167

Merged
vancluever merged 1 commit intomainfrom
cover
Feb 20, 2026
Merged

build: add options for forced LLVM and kcov coverage#167
vancluever merged 1 commit intomainfrom
cover

Conversation

@vancluever
Copy link
Owner

This allows us, from zig build, to force LLVM and generate coverage for certain commands.

-Dllvm=true|false will force the LLVM option on both zig build test and zig build spec.

-Dcover=true and -Dclean=true will do the following:

  • Generate coverage with kcov, and open the index file with xdg-open (or open on Darwin)

  • If -Dclean=true is specified along with cover, will clean out the directory (zig-out/cover) beforehand.

This allows us, from "zig build", to force LLVM and generate coverage
for certain commands.

"-Dllvm=true|false" will force the LLVM option on both "zig build test"
and "zig build spec".

"-Dcover=true" and "-Dclean=true" will do the following:

* Generate coverage with kcov, and open the index file with xdg-open (or
  "open" on Darwin)

* If "-Dclean=true" is specified along with cover, will clean out the
  directory (zig-out/cover) beforehand.
@vancluever vancluever merged commit 1a2958e into main Feb 20, 2026
2 checks passed
@vancluever vancluever deleted the cover branch February 20, 2026 18:50
@vancluever vancluever restored the cover branch February 20, 2026 18:50
@vancluever vancluever deleted the cover branch February 20, 2026 18:50
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.

1 participant