aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegram-desktop/werror-lto.patch
blob: d2cc6c7210cfca1268a4000de1c28dd23729e6d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/cmake/options_linux.cmake b/cmake/options_linux.cmake
index a6a13c9..cf6125c 100644
--- a/cmake/options_linux.cmake
+++ b/cmake/options_linux.cmake
@@ -9,7 +9,6 @@ INTERFACE
     $<IF:$<CONFIG:Debug>,,-Ofast -fno-strict-aliasing>
     -pipe
     -Wall
-    -Werror
     -W
     -fPIC
     -Wno-unused-variable
@@ -33,8 +32,4 @@ INTERFACE
 if (build_linux32)
     target_compile_options(common_options INTERFACE -g0)
     target_link_options(common_options INTERFACE -g0)
-else()
-    target_compile_options(common_options INTERFACE $<IF:$<CONFIG:Debug>,,-g -flto>)
-    target_link_options(common_options INTERFACE $<IF:$<CONFIG:Debug>,,-g -flto -fuse-linker-plugin>)
 endif()
-