Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1188

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.5.0
    • Affects Version/s: None
    • Component/s: 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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: