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

Prototype support emscripten ASYNCIFY=2 (JSPI)

    XMLWordPrintable

Details

    • Epic
    • Resolution: Fixed
    • P2: Important
    • None
    • None
    • Qt RHI
    • None
    • WebGPU for WASM

    Description

      To make an app work with JSPI on Chrome:
      1) Update to emscripten 3.1.43 (or above). Please mind that .43, as of Jun 26, is still unreleased. To get early access, apply all of the patches from sub-tasks to your emscripten.
      2) Run chrome, go to chrome://flags, look up JSPI, enable the feature, restart the browser
      3) Compile Qt for WebAssembly with -feature-wasm-exceptions
      4) Modify your app to use the following linker switches:

      -sDYNCALLS=1
      -sASYNCIFY=2
      -sASYNCIFY_EXPORTS=dynCall_*
      

      5) Run the app in Chrome modified as in 1)
      6) Enjoy JSPI!

      Attachments

        Issue Links

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

          Activity

            People

              mikolaj.boc Mikołaj Boc (Inactive)
              mikolaj.boc Mikołaj Boc (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes