mirror of
https://github.com/intel/isa-l.git
synced 2025-10-28 19:51:56 +01:00
Bump minimum NASM version to 2.14.01
NASM version 2.14.01 supports all x86 ISA in this library. Since this version has been out since 2018, it is safe to only permit the library to be compiled with this minimum version, as announced in issue #297. Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
committed by
Tomasz Kantecki
parent
d20335bba8
commit
8045bee170
20
make.inc
20
make.inc
@@ -179,26 +179,6 @@ $(all_llvm_fuzz_tests): % : %.o $(lib_name)
|
||||
$(CXX) $(CXXFLAGS) $^ $(LDLIBS) $(FUZZLINK) -o $@
|
||||
|
||||
|
||||
# Check for modern as
|
||||
test-as = $(shell hash printf && printf $(3) > $(2) && $(AS) $(ASFLAGS) ${tmpf} -o /dev/null 2> /dev/null && echo $(1) || echo $(4))
|
||||
as_4 := "pblendvb xmm2, xmm1;"
|
||||
as_6 := "vinserti32x8 zmm0, ymm1, 1;"
|
||||
as_10 := "vpcompressb zmm0 {k1}, zmm1;"
|
||||
|
||||
tmpf := $(shell mktemp)
|
||||
as_feature_level := $(call test-as, 4, $(tmpf), $(as_4), $(as_feature_level))
|
||||
as_feature_level := $(call test-as, 6, $(tmpf), $(as_6), $(as_feature_level))
|
||||
as_feature_level := $(call test-as, 10, $(tmpf), $(as_10), $(as_feature_level))
|
||||
tmpf := $(shell rm ${tmpf})
|
||||
|
||||
ifneq ($(findstring $(as_feature_level),6 10),)
|
||||
D_HAVE_AS_KNOWS_AVX512_y := -DHAVE_AS_KNOWS_AVX512
|
||||
endif
|
||||
|
||||
CFLAGS += -DAS_FEATURE_LEVEL=$(as_feature_level) $(D_HAVE_AS_KNOWS_AVX512_y)
|
||||
ASFLAGS += -DAS_FEATURE_LEVEL=$(as_feature_level) $(D_HAVE_AS_KNOWS_AVX512_y)
|
||||
|
||||
|
||||
# Check for pthreads
|
||||
ifeq ($(arch),mingw)
|
||||
have_threads ?= y
|
||||
|
||||
Reference in New Issue
Block a user