Allow clang for ThunderX2 config

Needed for compiling on e.g. Mac M1. AFAIK clang supports the same -mcpu flag for ThunderX2 as gcc.
This commit is contained in:
Devin Matthews
2021-04-14 13:00:42 -05:00
committed by GitHub
parent 6280757be3
commit 6548cebaf5

View File

@@ -65,7 +65,11 @@ CKOPTFLAGS := $(COPTFLAGS) -O3 -ftree-vectorize
ifeq ($(CC_VENDOR),gcc)
CKVECFLAGS := -mcpu=thunderx2t99
else
$(error gcc is required for this configuration.)
ifeq ($(CC_VENDOR),clang)
CKVECFLAGS := -mcpu=thunderx2t99
else
$(error gcc or clang is required for this configuration.)
endif
endif
# Flags specific to reference kernels.