mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
Fix universal build with cf-protection failing
This commit is contained in:
parent
46bb027d14
commit
1c72a94b2f
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
|
@ -451,7 +451,8 @@ def init_env(
|
|||
# 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 ''
|
||||
intel_control_flow_protection = '-fcf-protection=full' if ccver >= (9, 0) else ''
|
||||
# Universal build fails with -fcf-protection clang is not smart enough to filter it out for the ARM part
|
||||
intel_control_flow_protection = '-fcf-protection=full' if ccver >= (9, 0) and not build_universal_binary else ''
|
||||
control_flow_protection = arm_control_flow_protection if is_arm else intel_control_flow_protection
|
||||
cflags_ = os.environ.get(
|
||||
'OVERRIDE_CFLAGS', (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue