mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Turn on LTO for release builds
This commit is contained in:
2
setup.py
2
setup.py
@@ -129,6 +129,8 @@ def init_env(debug=False, sanitize=False, native_optimizations=True, profile=Fal
|
||||
ldflags = shlex.split(ldflags)
|
||||
cflags += shlex.split(os.environ.get('CFLAGS', ''))
|
||||
ldflags += shlex.split(os.environ.get('LDFLAGS', ''))
|
||||
if not debug:
|
||||
cflags.append('-flto'), ldflags.append('-flto')
|
||||
|
||||
if profile:
|
||||
cflags.append('-DWITH_PROFILER')
|
||||
|
||||
Reference in New Issue
Block a user