aboutsummaryrefslogtreecommitdiff
path: root/depends/patches/qt
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-11-10 23:25:13 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-11-10 23:25:13 +0000
commit05aca093819be276ac7d648472c6ed5c7d235cc5 (patch)
tree2af49052e4799d5bd522aec0a538d73df6d08294 /depends/patches/qt
parent1fdd832842f3b002ce0dd079747b6015fe5569cd (diff)
downloadbitcoin-05aca093819be276ac7d648472c6ed5c7d235cc5.tar.xz
build: Patch Qt to handle minimum macOS version properly
This change is required to switch to macOS 14 SDK (Xcode 15).
Diffstat (limited to 'depends/patches/qt')
-rw-r--r--depends/patches/qt/fix-minimum-macos.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/depends/patches/qt/fix-minimum-macos.patch b/depends/patches/qt/fix-minimum-macos.patch
new file mode 100644
index 0000000000..ecaa2ca308
--- /dev/null
+++ b/depends/patches/qt/fix-minimum-macos.patch
@@ -0,0 +1,18 @@
+Ensure that Qt handles the minimum macOS version properly
+
+This patch can be dropped for LLVM Clang 17+, after commit
+https://github.com/llvm/llvm-project/commit/c8e2dd8c6f490b68e41fe663b44535a8a21dfeab
+
+
+--- a/qtbase/src/corelib/global/qsystemdetection.h
++++ b/qtbase/src/corelib/global/qsystemdetection.h
+@@ -220,6 +220,9 @@
+ # include <Availability.h>
+ # include <AvailabilityMacros.h>
+ #
++# undef __MAC_OS_X_VERSION_MIN_REQUIRED
++# define __MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_MIN_REQUIRED
++#
+ # ifdef Q_OS_MACOS
+ # if !defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_6
+ # undef __MAC_OS_X_VERSION_MIN_REQUIRED