makefiles: define WEBP_HAVE_AVX2 when appropriate

more precisely: in makefile.unix and Makefile.vc when HAVE_AVX2=1

Change-Id: Ia93f373eef6595c016d650728f4f64f61764cd48
This commit is contained in:
James Zern 2014-06-07 19:57:51 -07:00
parent 69fce2ea78
commit ae7661b36e
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ OUTDIR = $(OBJDIR)
!ENDIF
!IF "$(HAVE_AVX2)" == "1"
CFLAGS += /DWEBP_HAVE_AVX2
AVX2_FLAGS = /arch:AVX2
!ENDIF

View File

@ -71,6 +71,7 @@ EXTRA_FLAGS += -Wshadow
# AVX2-specific flags:
ifeq ($(HAVE_AVX2), 1)
EXTRA_FLAGS += -DWEBP_HAVE_AVX2
src/dsp/%_avx2.o: EXTRA_FLAGS += -mavx2
endif