nixpkgs/pkgs/applications/misc/kitty/no-lto.patch
Luflosi f96feeef7c kitty: 0.17.4 -> 0.18.0
https://github.com/kovidgoyal/kitty/releases/tag/v0.18.0

I submitted a patch to kitty, so that the library paths can now be passed as arguments to the build system, eliminating the need for patching. This should reduce the required maintenance effort in the future.

This commit removes the dependency on `which`, which is no longer necessary since 5e4fe584fa. It was introduced in 481e61fad8.

The configure phase is now ignored because kitty has no configure script.

The kitty tests are now run after compilation.

The zsh completions no longer need to be invoked with `source` since 38eb737845, so remove the outdated comment.

There is now a link to the changelog.
2020-06-21 16:57:05 +02:00

13 lines
468 B
Diff

--- a/setup.py
+++ b/setup.py
@@ -287,10 +287,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')