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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.5.2
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-01-23

      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.

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

              Created:
              Updated:
              Resolved: