Skip to content

'bazel coverage' fails for C/C++ targets #199

@ljessendk

Description

@ljessendk

It seems that the toolchain doesn't support building C/C++ targets with coverage.

Steps to reproduce:

  1. cd examples/rules_cc
  2. bazel coverage ...

Output:

ld.lld: error: undefined symbol: llvm_gcda_start_file
>>> referenced by hello_world.cc
>>>               bazel-out/k8-fastbuild/bin/_objs/hello_world/hello_world.o:(__llvm_gcov_writeout)

bazel 7.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions