From 2c29c9be80c38ed7f695762ef928c2e87b983655 Mon Sep 17 00:00:00 2001 From: Marius Orcsik Date: Mon, 29 Apr 2024 19:18:40 +0200 Subject: [PATCH] Fixed adding fcf-protection=full for only the supported cpu families --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 08677ec..d8955d5 100644 --- a/meson.build +++ b/meson.build @@ -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