Enable compilation with old g++ when the default g++ is not supported (+5.0)

This commit is contained in:
Pau Farré 2016-04-12 12:49:13 +02:00
parent b16cc5d197
commit e30bf95989

View File

@ -40,10 +40,10 @@ BUILDDIR := build
NVCC := $(CUDA_HOME)/bin/nvcc
GPP := g++
GPP ?= g++
CPPFLAGS := -I$(CUDA_HOME)/include
CXXFLAGS := -O3 -fPIC -fvisibility=hidden
NVCUFLAGS := $(CUDACODE) -O3 -lineinfo -std=c++11 -maxrregcount 96
NVCUFLAGS := $(CUDACODE) -O3 -lineinfo -std=c++11 -maxrregcount 96 -ccbin=${GPP}
ifneq ($(VERBOSE), 0)
NVCUFLAGS += -Xptxas -v -Xcompiler -Wall,-Wextra