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

Make Release builds Universal by default

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.4
    • 6.3
    • Build System
    • None
    • macOS

    Description

      Since the introduction of the support of Apple Silicon in 6.2, it is possible to make Universal builds for Qt apps. Still, by default, a build still contains artefacts only for one CPU architecture - the same as the host machine. The user can control this with the variables for cmake (https://doc.qt.io/qt-6/macos.html#architectures). and make the build "really" Universal

      XCode proceeds with this in a different way according to "Update the Architecture List in Your Xcode Projects" in https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary . The current host CPU architecture is used for Debug builds, but Release builds are made Universal automatically.

      The task is to match the behavior of XCode so that users have a consistent experience.

      PS. Supporting this for 5.15 LTS is out of scope. The scope of the support of Apple Silicon on Qt 5.15 LTS is frozen with 5.15.9. 

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            vminenko Vladimir Minenko
            Vladimir Minenko Vladimir Minenko
            Volker Hilsheimer Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes