Aarch64: fix Q_PROCESSOR_ARM_V8 detection.
The macro __ARM64_ARCH_8 is only set by Apple's flavor of clang. GCC and mainline clang set __ARM_ARCH to 8, and set __ARM_ARCH_8A (when applicable). Change-Id: I356b785ffdbfedf8f1ed682840db431db2779ba5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
bd30cb2a91
commit
0c9b4c84ad
@ -95,7 +95,9 @@
|
|||||||
# else
|
# else
|
||||||
# define Q_PROCESSOR_ARM_32
|
# define Q_PROCESSOR_ARM_32
|
||||||
# endif
|
# endif
|
||||||
# if defined(__ARM64_ARCH_8__)
|
# if defined(__ARM64_ARCH_8__) \
|
||||||
|
|| defined(__ARM_ARCH_8A) \
|
||||||
|
|| (defined(__ARM_ARCH) && __ARM_ARCH == 8)
|
||||||
# define Q_PROCESSOR_ARM_V8
|
# define Q_PROCESSOR_ARM_V8
|
||||||
# define Q_PROCESSOR_ARM_V7
|
# define Q_PROCESSOR_ARM_V7
|
||||||
# define Q_PROCESSOR_ARM_V6
|
# define Q_PROCESSOR_ARM_V6
|
||||||
|
Loading…
Reference in New Issue
Block a user