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

The Webassembly documentation has an incorrect target_link_options

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.6, dev
    • Documentation
    • None
    • WebAssembly
    • cad9c8317 (dev), c8c7323f8 (6.6)

      https://doc.qt.io/qt-6/wasm.html#building-applications-on-the-command-line
      says that to enable asyncify, one should do
      set target_link_options(<target> PUBLIC -sASYNCIFY -Os)
      but this is incorrect, that should be
      target_link_options(<target> PUBLIC -sASYNCIFY -Os)
      Furthermore, this documentation doesn't explain in any way how to do that conditionally for a Webassembly build only. If I have a cross-platform project, I can't just put those target_link_options in there unconditionally, those link options aren't correct for a Windows build or a desktop Linux build.

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

            piwierci Piotr WierciƄski
            villevoutilainen_qt Ville Voutilainen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes