mirror of
https://github.com/amd/blis.git
synced 2026-04-20 07:38:53 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user