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

Details

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

    Description

      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!

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: