[Webkit-unassigned] [Bug 206737] New: [CMake] Provide a way to run a syntax check without actually compiling

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 24 04:48:35 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=206737

            Bug ID: 206737
           Summary: [CMake] Provide a way to run a syntax check without
                    actually compiling
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com

The idea here would be to take advantage of the compilation
database (the “compile_commands.json” file which CMake can
generate when “-DCMAKE_EXPORT_COMPILE_COMMANDS=ON“ is passed
when configuring), pick the compiler commands from there,
and run them with “-fsyntax-only” added.

Now, there is a slight complication: many of the compilation
commands will need certain derived sources being generated
before they can successfully run. It would be good to have
a CMake target which depends on all the generated/derived
sources, so we can run “ninja derived-sources” (or similar)
and *then* run the “-fsyntax-only” checks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200124/282e1be5/attachment.htm>


More information about the webkit-unassigned mailing list