mirror of
https://git.proxmox.com/git/fwupd
synced 2025-10-17 21:56:44 +00:00
Do not build fwupdcethelper if noinline,noclone fails
This commit is contained in:
parent
7a8c61a5c3
commit
8bdd868c58
@ -27,7 +27,17 @@ shared_module('fu_plugin_cpu',
|
||||
],
|
||||
)
|
||||
|
||||
# verify the compiler knows what to do
|
||||
if cc.has_argument('-fcf-protection')
|
||||
build_fwupdcethelper = cc.compiles(
|
||||
'static void __attribute__((noinline,noclone)) f(void) {}',
|
||||
name : '__attribute__((noinline,noclone))',
|
||||
)
|
||||
else
|
||||
build_fwupdcethelper = false
|
||||
endif
|
||||
|
||||
if build_fwupdcethelper
|
||||
libfwupdcethelper = static_library('fwupdcethelper',
|
||||
sources : [
|
||||
'fu-cpu-helper-cet-common.c',
|
||||
|
Loading…
Reference in New Issue
Block a user