Disable automatic setting of clang target flags on old clang
Old versions of clang don't support this pragma, so we have to assume that the user will have set the flags. Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
d8d6451a6e
commit
d47186d6e3
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@
|
||||||
#pragma GCC push_options
|
#pragma GCC push_options
|
||||||
#pragma GCC target ("pclmul,sse2,aes")
|
#pragma GCC target ("pclmul,sse2,aes")
|
||||||
#define MBEDTLS_POP_TARGET_PRAGMA
|
#define MBEDTLS_POP_TARGET_PRAGMA
|
||||||
#elif defined(__clang__)
|
#elif defined(__clang__) && (__clang_major__ >= 5)
|
||||||
#pragma clang attribute push (__attribute__((target("pclmul,sse2,aes"))), apply_to=function)
|
#pragma clang attribute push (__attribute__((target("pclmul,sse2,aes"))), apply_to=function)
|
||||||
#define MBEDTLS_POP_TARGET_PRAGMA
|
#define MBEDTLS_POP_TARGET_PRAGMA
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue