Skip to content

Commit

Permalink
conditionally add -msse4.1 in Makefile.unix
Browse files Browse the repository at this point in the history
Change-Id: I46798d39f5354fe44224a4f9580665a967d2fa1f
  • Loading branch information
skal65535 committed Mar 20, 2015
1 parent e9570dd commit bf09cf1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions makefile.unix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ EXTRA_FLAGS += -Wformat-security -Wformat-nonliteral

# EXTRA_FLAGS += -Wvla

# SSE4.1-specific flags:
ifeq ($(HAVE_SSE41), 1)
EXTRA_FLAGS += -DWEBP_HAVE_SSE41
src/dsp/%_sse41.o: EXTRA_FLAGS += -msse4.1
endif

# AVX2-specific flags:
ifeq ($(HAVE_AVX2), 1)
EXTRA_FLAGS += -DWEBP_HAVE_AVX2
Expand Down

0 comments on commit bf09cf1

Please sign in to comment.