aboutsummaryrefslogtreecommitdiff
path: root/depends/patches
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-12-05 15:34:39 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-12-05 15:41:08 +0200
commitac9e4bc1e27374671ff1ebd96b939793f784ccb2 (patch)
tree33db76a696033225be721a11549293cf9993df33 /depends/patches
parentea989deecc8d4d02bb401c0ac7cd7a0543e3454c (diff)
downloadbitcoin-ac9e4bc1e27374671ff1ebd96b939793f784ccb2.tar.xz
build: Fix build for Android x86_64
Diffstat (limited to 'depends/patches')
-rw-r--r--depends/patches/qt/dont_use_avx_android_x86_64.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/depends/patches/qt/dont_use_avx_android_x86_64.patch b/depends/patches/qt/dont_use_avx_android_x86_64.patch
new file mode 100644
index 0000000000..b12ac8f4d0
--- /dev/null
+++ b/depends/patches/qt/dont_use_avx_android_x86_64.patch
@@ -0,0 +1,32 @@
+Android: don't use avx and avx2 when building for Android x86_64
+
+AVX and AVX2 are not supported on x86_64 ABI.
+See:
+ - https://developer.android.com/ndk/guides/abis#86-64
+ - https://bugreports.qt.io/browse/QTBUG-86785
+
+Upstream commits:
+ - Qt 6.0: ff1a44be33f4bc05d502a2ca49171e0408992f61
+ - Qt 5.15: 8b2cc0f6deb038a4c9d4f0d9b690c7726bd809a9
+
+
+--- old/qtbase/configure.json
++++ new/qtbase/configure.json
+@@ -1098,7 +1098,7 @@
+ },
+ "avx": {
+ "label": "AVX",
+- "condition": "features.sse4_2 && tests.avx",
++ "condition": "features.sse4_2 && tests.avx && (!config.android || !arch.x86_64)",
+ "output": [
+ "privateConfig",
+ { "type": "define", "name": "QT_COMPILER_SUPPORTS_AVX", "value": 1 }
+@@ -1114,7 +1114,7 @@
+ },
+ "avx2": {
+ "label": "AVX2",
+- "condition": "features.avx && tests.avx2",
++ "condition": "features.avx && tests.avx2 && (!config.android || !arch.x86_64)",
+ "output": [
+ "privateConfig",
+ "privateFeature",