Changes between Initial Version and Version 1 of WebKitFlatpakSDK/SpeedUpBuild


Ignore:
Timestamp:
Aug 5, 2020 4:44:17 AM (4 years ago)
Author:
Philippe Normand
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitFlatpakSDK/SpeedUpBuild

    v1 v1  
     1== Speed up the build
     2
     3When you build WebKitGTK or WPEWebKit using the Flatpak SDK, ccache is enabled by default. More options are available, for distributed builds. See below.
     4
     5=== sccache
     6
     7[https://github.com/mozilla/sccache sccache] is available in the SDK. Depending on your sccache-dist cloud deployment, you might need to ask for an authentication token to your sysadmin. Once you have it, generate the toolchain archives that will be used for the distributed compilation:
     8
     9{{{
     10$ Tools/Scripts/webkit-flatpak -r -t token -s scheduler-url
     11}}}
     12
     13By default the scheduler url is Igalia's if it wasn't provided on the command-line.
     14
     15Once the toolchains have been generated, they will be available in `WebKitBuild/Toolchains/` and a sccache config file should be present in `WebKitBuild/UserFlatpak/sccache.toml`. Feel free to edit it, but keep in mind this is a generated file. To use a custom config file during the build, use the `$SCCACHE_CONF` env var (refer to the upstream sccache docs), otherwise the generated one will be used by default.
     16
     17The next step is to enable sccache in your build:
     18
     19{{{
     20export WEBKIT_USE_SCCACHE=1
     21export NUMBER_OF_PROCESSORS=45
     22}}}
     23
     24And then run build-webkit as usual. Open a network traffic monitor and watch for the uplink data rate. For debug builds a good downlink is needed as well, because the object files produced on the cloud builders are bigger.
     25
     26=== IceCC
     27
     28TODO