Merge pull request #511 from nerdcha/master

Use homebrew gcc if available
This commit is contained in:
Tianqi Chen 2015-09-20 17:18:38 -07:00
commit 05b242d542

View File

@ -1,6 +1,6 @@
export CC = gcc
#build on the fly
export CXX = g++
export CC = $(if $(shell which gcc-5),gcc-5,gcc)
export CXX = $(if $(shell which g++-5),g++-5,gcc)
export MPICXX = mpicxx
export LDFLAGS= -pthread -lm
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops