[Webkit-unassigned] [Bug 235641] New: [CMake] Pass -pipe to compilers that support it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 26 06:13:10 PST 2022


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

            Bug ID: 235641
           Summary: [CMake] Pass -pipe to compilers that support it
           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

Adding -pipe to the compiler command makes it use a pipe to send its
output to the assembler instead of temporary files, resulting in faster
builds.

The following results show that fresh builds took 12m:27s less on
average across the five builds I did for testing:

  without -pipe: 35m:43s
     with -pipe: 23m:15s

The setup was:

 - GTK port, release build.
 - Flatpak SDK, GCC.
 - Unified sources (the default).
 - No previous build directory (“rm -rf WebKitBuild/GTK”).
 - ccache empty (“webkit-flatpak -c ccache -cC”).
 - Kernel disk caches flushed (“echo 3 > /proc/sys/vm/drop_caches”).

The GCC documentation warns that some oddball assemblers might not
properly handle input from a pipe, but I would expect that reasonably
modern systems as needed to build/run WebKit will not have that kind
of trouble.

Clang also supports the option, I only checked that the build didn't
get broken but didn't do the numbers — let me know if you want me to
before landing the patch.

-- 
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/20220126/504e0eee/attachment.htm>


More information about the webkit-unassigned mailing list