mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-31 14:22:33 +00:00
parent
f65914599b
commit
11942ed6dc
2 changed files with 7 additions and 3 deletions
5
setup.py
5
setup.py
|
|
@ -263,10 +263,11 @@ def init_env(
|
|||
cppflags.append('-DDEBUG_{}'.format(el.upper().replace('-', '_')))
|
||||
cflags_ = os.environ.get(
|
||||
'OVERRIDE_CFLAGS', (
|
||||
'-Wextra {} -Wno-missing-field-initializers -Wall -Wstrict-prototypes -std=c11'
|
||||
'-Wextra {} -Wno-missing-field-initializers -Wall -Wstrict-prototypes {}'
|
||||
' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden {}'
|
||||
).format(
|
||||
float_conversion,
|
||||
'' if is_openbsd else '-std=c11',
|
||||
optimize,
|
||||
' '.join(sanitize_args),
|
||||
stack_protector,
|
||||
|
|
@ -287,7 +288,7 @@ 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:
|
||||
if not debug and not sanitize and not is_openbsd:
|
||||
# See https://github.com/google/sanitizers/issues/647
|
||||
cflags.append('-flto')
|
||||
ldflags.append('-flto')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue