Utilize compiler AVX512 capability info from c_check when building getarch

This commit is contained in:
Martin Kroeker
2022-03-23 15:19:55 +01:00
committed by GitHub
parent 694f6c5c8d
commit 9fbeb88fb8

View File

@@ -71,7 +71,8 @@ endif
getarch : getarch.c cpuid.S dummy $(CPUIDEMU)
$(HOSTCC) $(HOST_CFLAGS) $(EXFLAGS) -o $(@F) getarch.c cpuid.S $(CPUIDEMU)
avx512=$$(perl c_check - - gcc | grep NO_AVX512); \
$(HOSTCC) $(HOST_CFLAGS) $(EXFLAGS) $${avx512:+-D$${avx512}} -o $(@F) getarch.c cpuid.S $(CPUIDEMU)
getarch_2nd : getarch_2nd.c config.h dummy
ifndef TARGET_CORE