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

Prototype support emscripten ASYNCIFY=2 (JSPI)

XMLWordPrintable

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

      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!

        For Gerrit Dashboard: QTBUG-112916
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes