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

Create specific target for compile commands

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.1, 5.0.14, 6.0.3, 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • v6.1, v6.0, v5.0

      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).

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

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

              Created:
              Updated:
              Resolved: