[webkit-changes] [WebKit/WebKit] 5c9dd4: [CMake] Generate a usable compile_commands.json

Patrick noreply at github.com
Wed Aug 16 08:24:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5c9dd47913bc1cc71ae7cea6916a1b5eae19b5e3
      https://github.com/WebKit/WebKit/commit/5c9dd47913bc1cc71ae7cea6916a1b5eae19b5e3
  Author: Patrick Griffis <pgriffis at igalia.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M Source/cmake/WebKitCommon.cmake
    A Tools/Scripts/rewrite-compile-commands

  Log Message:
  -----------
  [CMake] Generate a usable compile_commands.json
https://bugs.webkit.org/show_bug.cgi?id=260218

Reviewed by Michael Catanzaro.

When using unified builds CMake generates a compile_commands.json
that isn't useful by many tools as it lacks much of the sources.

This adds a script to expand UnifiedSources into the full list
of sources. It outputs it to webkit_compile_commands.json.

* Source/cmake/WebKitCommon.cmake:
* Tools/Scripts/rewrite-compile-commands: Added.

Canonical link: https://commits.webkit.org/266947@main




More information about the webkit-changes mailing list