Switch From Clang To GCC To Fix Code Coverage Issues #989
Labels
Difficulty - 13
Require a good understanding of relevant systems and tools, and may require some pathfinding
Milestone
Description of the task
In #985, we setup our toolchain to use
arm-none-eabi-gcc
forarm
targets, andclang
forx86_64
targets. Unfortunately, bazel has issues getting proper code coverage fromclang
, and so we have a somewhat hacky script to manually convert the coverage outputs fromclang
into a format that CodeCov can understand. As such we would like to switch back togcc
, which bazel properly supports in terms of reading coverage (at least for some versions of gcc). We should use the newest version of gcc possible.Relevant Bazel Issues
bazelbuild/bazel#9406
bazelbuild/bazel#8217
bazelbuild/bazel#7719
Acceptance criteria
gcc
instead ofclang
via theWORKSPACE
file the associated external build filecc_toolchain/wrappers
for clang to gccgcc
toolchain configuration incc_toolchain_config.bzl
and remove theclang
onecc_toolchain/BUILD
fromclang
togcc
convert_profdata_to_lcov
script, and make sure codecov still works (will probably need to add back the-s bazel-testlogs
flag to the codecov command in.travis.yml
)Blocked By
#1124
The text was updated successfully, but these errors were encountered: