Skip to content

Commit

Permalink
Fixed adding fcf-protection=full for only the supported cpu families
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusor committed Apr 29, 2024
1 parent 5683582 commit 2c29c9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ c_args = [
'-Wno-format-nonliteral', # we use a non string literal for the format of a snprintf to build the authorization url
]

if build_machine.cpu() != 'aarch64'
# this is not supported by the ARM Gcc in the Debian CI image
if build_machine.cpu_family() in ['x86', 'x86_64']
# this is supported only on x86 and x86_64, and we add it because it's a default
# CFLAG for Archlinux's Makepkg
add_project_arguments('-fcf-protection=full', language : 'c')
endif

Expand Down

0 comments on commit 2c29c9b

Please sign in to comment.