Correct haswell function target for clang

Clang uses arch names directly, and not the "arch=xxx" format of GCC.

Appears we do not use this target though.

Pick-to: 6.3 6.2
Change-Id: I1d295f25fe2278c5c6bc0f617496555e28427bea
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Allan Sandfeld Jensen 2022-02-14 10:41:18 +01:00
parent fedd4f26ad
commit 1cc0494f7d
1 changed files with 5 additions and 1 deletions

View File

@ -236,7 +236,11 @@ asm(
//
// macOS's fat binaries support the "x86_64h" sub-architecture and the GNU libc
// ELF loader also supports a "haswell/" subdir (e.g., /usr/lib/haswell).
# define QT_FUNCTION_TARGET_STRING_ARCH_HASWELL "arch=haswell"
# if defined(Q_CC_CLANG)
# define QT_FUNCTION_TARGET_STRING_ARCH_HASWELL "haswell"
# else
# define QT_FUNCTION_TARGET_STRING_ARCH_HASWELL "arch=haswell"
# endif
# if defined(__AVX2__) && defined(__BMI__) && defined(__BMI2__) && defined(__F16C__) && \
defined(__FMA__) && defined(__LZCNT__) && defined(__RDRND__)
# define __haswell__ 1