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

QT_WASM_INITIAL_MEMORY has no effect

XMLWordPrintable

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

      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}")
      

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes