summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/access
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-05-21 12:01:26 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-05-21 17:45:28 +0000
commitf9c850cc42a5591c096e1b0d547efb93ad18f1f1 (patch)
treeb5dc8f29c6dda26c5ef2eb43232e07958a12d6a7 /tests/auto/network/access
parent46db3379750d8b6ef99184cb03f89f4a48b3427a (diff)
qmake: Pick default architecture on macOS based on uname
When dealing with a universal build of Qt, we would end up using the QT_ARCH as the architecture for user projects, but this architecture is always the primary one that Qt was configured with. Instead of relying on QT_ARCH, we start writing QT_ARCHS (plural) to qconfig.pri, based on CMAKE_OSX_ARCHITECTURES, and then use that to initialize QMAKE_APPLE_DEVICE_ARCHS. We then resolve the active arch using uname -m, matching what CMake does. We still feed all the available architectures to the Makefile or Xcode project, so that the user can build for any of the available architectures without needing a reconfigure. Fixes: QTBUG-93760 Change-Id: I0d338241ba4d944ca36d85371e9c4df7dbc4f269 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/network/access')
0 files changed, 0 insertions, 0 deletions