From e30bf9598919787b2c851158f1e2e1ad4d4c2432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Farr=C3=A9?= Date: Tue, 12 Apr 2016 12:49:13 +0200 Subject: Enable compilation with old g++ when the default g++ is not supported (+5.0) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a3f675e..0bc09d6 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3