Skip to content

Commit 952f0da

Browse files
committed
[Depends] Fix Qt builds for M1 apple builds
Hard-set arm64 device arch for apple silicon (aarch64) builds in order to ensure native binaries are all aarch64 compatible.
1 parent 2781ccd commit 952f0da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

depends/packages/qt.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ $(package)_config_opts_darwin += -device-option MAC_MIN_VERSION=$(OSX_MIN_VERSIO
104104
$(package)_config_opts_darwin += -device-option MAC_TARGET=$(host)
105105
endif
106106

107+
# for macOS on Apple Silicon (ARM) see https://bugreports.qt.io/browse/QTBUG-85279
108+
$(package)_config_opts_aarch64_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64
109+
107110
$(package)_config_opts_linux = -qt-xkbcommon-x11
108111
$(package)_config_opts_linux += -qt-xcb
109112
$(package)_config_opts_linux += -no-xcb-xlib

0 commit comments

Comments
 (0)