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

The compile commands database doesn't always write the actual commands used to build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.2
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 2017-01-23

      Description

      If building a target with eg.:

      env.Library("foo", ["foo.cpp"], CXXFLAGS=["-Dfoo"])

      The compile command written to the compilation command database (compile_commands.json) will not use the updated flags in CXXFLAGS, but always use the environment in "env".

      This means that the compilation database will not always match the actual command line required to build the target.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gabriel.russell Gabriel Russell (Inactive)
              Reporter:
              laudrup Kasper Laudrup
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: