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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.5.2
    • None
    • Build
    • None
    • Fully Compatible
    • ALL
    • 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

        Activity

          People

            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            laudrup Kasper Laudrup
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: