Use --coverage compiler/linker option for code coverage builds

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The --coverage option is supported by both GCC and Clang:

      It was also used by libmongoc. We currently add -fprofile-arcs -ftest-coverage CFLAGS manually and do not specify any linker options. This change should preserve the effect of our current CFLAGS and ensure that we link to gcov appropriately.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: