aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegram-desktop/guard-msse2.patch
blob: 68a2d20949f2e1178346e50c8dd09c3d3a63f792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/Telegram/cmake/lib_tgvoip.cmake b/Telegram/cmake/lib_tgvoip.cmake
index 38fa632..2801fbe 100644
--- a/Telegram/cmake/lib_tgvoip.cmake
+++ b/Telegram/cmake/lib_tgvoip.cmake
@@ -756,7 +756,7 @@ else()
         -Wno-error=sequence-point
         -Wno-error=unused-result
     )
-    if (build_linux32)
+    if (build_linux32 AND CMAKE_SYSTEM_PROCESSOR MATCHES "i686.*|i386.*|x86.*")
         target_compile_options(lib_tgvoip PRIVATE -msse2)
     endif()
     target_compile_definitions(lib_tgvoip