summary refs log tree commit diff
path: root/pkgs/applications/misc/kitty/no-lto.patch
blob: 8073c11fbd2a03355fd75e8cd17a4ec2741ab59a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/setup.py
+++ b/setup.py
@@ -277,10 +277,6 @@ def init_env(
     cppflags += shlex.split(os.environ.get('CPPFLAGS', ''))
     cflags += shlex.split(os.environ.get('CFLAGS', ''))
     ldflags += shlex.split(os.environ.get('LDFLAGS', ''))
-    if not debug and not sanitize:
-        # See https://github.com/google/sanitizers/issues/647
-        cflags.append('-flto')
-        ldflags.append('-flto')

     if profile:
         cppflags.append('-DWITH_PROFILER')