Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67681

Create specific target for compile commands

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.1.1, 5.0.14, 6.0.3, 6.2.0-rc0
    • None
    • None
    • Fully Compatible
    • v6.1, v6.0, v5.0

    Description

      Can we get a target specifically for generating compile_commands.json? I always recommend having a dedicated config for it anyway. In particular, it should use clang, not use icecc or ccache, enable flags that maximize enabled code to improve find-references (especially --dbg=on but there are a few others), and --disable-warnings-as-errors (this plays nicer with its usage inside of IDEs/editors).

      Attachments

        1. error-vim.png
          error-vim.png
          7 kB
        2. image-2022-10-14-15-19-11-217.png
          image-2022-10-14-15-19-11-217.png
          157 kB
        3. image-2022-10-24-18-30-49-165.png
          image-2022-10-24-18-30-49-165.png
          4 kB
        4. warning-vim.png
          warning-vim.png
          11 kB

        Activity

          People

            juan.gu@mongodb.com Juan Gu
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: