Skip to content

Commit

Permalink
hide sse2 behing USE_SSE (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored and tqchen committed Sep 14, 2016
1 parent c33865f commit bf32163
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ include make/dmlc.mk

# this is the common build script for dmlc lib
export LDFLAGS= -pthread -lm
export CFLAGS = -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x
export CFLAGS = -O3 -Wall -Wno-unknown-pragmas -Iinclude -std=c++0x
LDFLAGS+= $(DMLC_LDFLAGS)
CFLAGS+= $(DMLC_CFLAGS)

ifndef USE_SSE
USE_SSE = 1
endif

ifeq ($(USE_SSE), 1)
CFLAGS += -msse2
endif

ifdef DEPS_PATH
CFLAGS+= -I$(DEPS_PATH)/include
LDFLAGS+= -L$(DEPS_PATH)/lib
Expand Down

0 comments on commit bf32163

Please sign in to comment.