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

QT_WASM_INITIAL_MEMORY has no effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.3.0 Beta2
    • Build System: CMake
    • None
    • Ubuntu 20.04
    • WebAssembly

    Description

      In the CMake file I set the following:

      set(QT_WASM_INITIAL_MEMORY 33554432) #32MB

      but at link time... I always get the following error:

      [100%] Linking CXX executable MyProject.js
      wasm-ld: error: initial memory too small, 24306096 bytes needed  #23MB
      

      I also tried adding the following line in my CMakeLists.txt, but with no success:

      target_link_options(${CMAKE_PROJECT_NAME} INTERFACE "SHELL:-s INITIAL_MEMORY=${QT_WASM_INITIAL_MEMORY}")
      

       

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              jozzolo José Del Romano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes