aboutsummaryrefslogtreecommitdiff
path: root/depends/packages/qt.mk
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-08-10 15:54:02 +0100
committerfanquake <fanquake@gmail.com>2022-08-12 16:38:29 +0100
commit08bd3382777bf5d24fa8f32f27abc7b6d1e20dd9 (patch)
treee6f281dec5fd2ed39ea678067685cac7ac38835c /depends/packages/qt.mk
parentbf3f05f41d27a6be3730432aaa7e22e443f7cafa (diff)
build: optimise arm64 darwin qt build using -O1
Building at higher optimisation levels causes reproducibility issues when building on different architectures.
Diffstat (limited to 'depends/packages/qt.mk')
-rw-r--r--depends/packages/qt.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/depends/packages/qt.mk b/depends/packages/qt.mk
index 148a18cf53..b45f8f5cf4 100644
--- a/depends/packages/qt.mk
+++ b/depends/packages/qt.mk
@@ -131,6 +131,9 @@ $(package)_config_opts_darwin += -no-feature-corewlan
$(package)_config_opts_darwin += -no-freetype
$(package)_config_opts_darwin += QMAKE_MACOSX_DEPLOYMENT_TARGET=$(OSX_MIN_VERSION)
+# Optimizing using > -O1 causes non-determinism when building across arches.
+$(package)_config_opts_aarch64_darwin += "QMAKE_CFLAGS_OPTIMIZE_FULL = -O1"
+
ifneq ($(build_os),darwin)
$(package)_config_opts_darwin += -xplatform macx-clang-linux
$(package)_config_opts_darwin += -device-option MAC_SDK_PATH=$(OSX_SDK)