From ae7661b36e4a60d3779b4ecf86d779a6fae3d07c Mon Sep 17 00:00:00 2001 From: James Zern Date: Sat, 7 Jun 2014 19:57:51 -0700 Subject: [PATCH] makefiles: define WEBP_HAVE_AVX2 when appropriate more precisely: in makefile.unix and Makefile.vc when HAVE_AVX2=1 Change-Id: Ia93f373eef6595c016d650728f4f64f61764cd48 --- Makefile.vc | 1 + makefile.unix | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile.vc b/Makefile.vc index 1c2ab7df..c9357ba2 100644 --- a/Makefile.vc +++ b/Makefile.vc @@ -45,6 +45,7 @@ OUTDIR = $(OBJDIR) !ENDIF !IF "$(HAVE_AVX2)" == "1" +CFLAGS += /DWEBP_HAVE_AVX2 AVX2_FLAGS = /arch:AVX2 !ENDIF diff --git a/makefile.unix b/makefile.unix index 28462954..5e2ed162 100644 --- a/makefile.unix +++ b/makefile.unix @@ -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