File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,10 @@ $(package)_config_opts_darwin += -device-option MAC_TARGET=$(host)
128
128
$(package)_config_opts_darwin += -device-option XCODE_VERSION=$(XCODE_VERSION )
129
129
endif
130
130
131
- # for macOS on Apple Silicon (ARM) see https://bugreports.qt.io/browse/QTBUG-85279
131
+ ifneq ( $( build_arch ) , $( host_arch ) )
132
132
$(package)_config_opts_aarch64_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64
133
+ $(package)_config_opts_x86_64_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=x86_64
134
+ endif
133
135
134
136
$(package ) _config_opts_linux = -qt-xcb
135
137
$(package ) _config_opts_linux += -no-xcb-xlib
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ QMAKE_MAC_SDK.macosx.Path = $${MAC_SDK_PATH}
13
13
QMAKE_MAC_SDK.macosx.platform_name = macosx
14
14
QMAKE_MAC_SDK.macosx.SDKVersion = $${MAC_SDK_VERSION}
15
15
QMAKE_MAC_SDK.macosx.PlatformPath = /phony
16
- QMAKE_APPLE_DEVICE_ARCHS=x86_64
17
16
!host_build: QMAKE_CFLAGS += -target $${MAC_TARGET}
18
17
!host_build: QMAKE_OBJECTIVE_CFLAGS += $$QMAKE_CFLAGS
19
18
!host_build: QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
You can’t perform that action at this time.
0 commit comments