mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 04:20:05 +00:00
trivial: don't use noclone attribute for cet checker on clang
Clang doesn't support this
This commit is contained in:
parent
8867b1f47e
commit
4b80abafd8
@ -27,10 +27,16 @@ shared_module('fu_plugin_cpu',
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
code = '''
|
||||||
|
#if !__has_attribute (__noclone__)
|
||||||
|
#error symver attribute not supported
|
||||||
|
#endif
|
||||||
|
static void __attribute__((noinline,noclone)) f(void) {}
|
||||||
|
'''
|
||||||
|
|
||||||
# verify the compiler knows what to do
|
# verify the compiler knows what to do
|
||||||
if cc.has_argument('-fcf-protection')
|
if cc.has_argument('-fcf-protection')
|
||||||
build_fwupdcethelper = cc.compiles(
|
build_fwupdcethelper = cc.compiles(code,
|
||||||
'static void __attribute__((noinline,noclone)) f(void) {}',
|
|
||||||
name : '__attribute__((noinline,noclone))',
|
name : '__attribute__((noinline,noclone))',
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user