Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94800

qtwebengine's chromium build uses all core despite using 'make -j$N' from the top level

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 6.2.0 Alpha
    • 5.15.2
    • WebEngine
    • None

      Hello,

      For a typical source build of Qt using:

      ```

      ./configure \
            -opensource \
            -confirm-license \
            -nomake examples \
            -nomake tests
      make -j2
      

      ```

      The chromium built during qtwebengine's build would end up using all cores and fail to link due to exhausting the system's memory (32 GiB) instead of honoring the intent of limiting the build to use two parallel processes (-j2).

      This is because Chromium's build system doesn't get the information from the top level correctly. It should call ninja with the same -j argument as the top level make. One workaround is to export NINJAFLAGS=-j2 before calling make at the top level, or pass it as an argument (for GNU Make).

      Thanks!

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt_webengine_team Qt WebEngine Team
            apteryx Maxim Cournoyer
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes