Use homebrew gcc if available

This commit is contained in:
Jamie Hall 2015-09-21 08:55:42 +10:00
parent f28459497d
commit 6c3e4d7d0d

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