mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-09 18:14:27 +03:00
Dont use branch-protection=standard on linux ARM as it reportedly causes crashes
See https://github.com/kovidgoyal/kitty/issues/6845#issuecomment-1835886938
This commit is contained in:
parent
f2075f99fd
commit
d4ff54e0d8
5
setup.py
5
setup.py
@ -448,7 +448,10 @@ def init_env(
|
|||||||
std = '' if is_openbsd else '-std=c11'
|
std = '' if is_openbsd else '-std=c11'
|
||||||
sanitize_flag = ' '.join(sanitize_args)
|
sanitize_flag = ' '.join(sanitize_args)
|
||||||
march = '-march=native' if native_optimizations else ''
|
march = '-march=native' if native_optimizations else ''
|
||||||
control_flow_protection = '-mbranch-protection=standard' if is_arm else '-fcf-protection=full'
|
# Using -mbranch-protection=standard causes crashes on Linux ARM, reported
|
||||||
|
# in https://github.com/kovidgoyal/kitty/issues/6845#issuecomment-1835886938
|
||||||
|
arm_control_flow_protection = '-mbranch-protection=standard' if is_macos else ''
|
||||||
|
control_flow_protection = arm_control_flow_protection if is_arm else '-fcf-protection=full'
|
||||||
cflags_ = os.environ.get(
|
cflags_ = os.environ.get(
|
||||||
'OVERRIDE_CFLAGS', (
|
'OVERRIDE_CFLAGS', (
|
||||||
f'-Wextra {float_conversion} -Wno-missing-field-initializers -Wall -Wstrict-prototypes {std}'
|
f'-Wextra {float_conversion} -Wno-missing-field-initializers -Wall -Wstrict-prototypes {std}'
|
||||||
|
Loading…
Reference in New Issue
Block a user