From f97c4ccb60f44ebab5f30ebeff6626ab2479db6c Mon Sep 17 00:00:00 2001 From: Vadim Khotilovich Date: Fri, 18 Dec 2015 14:34:16 -0600 Subject: [PATCH] make gcc5 check silent when there's no gcc5 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 986c5d774..e478cb649 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -export CC = $(if $(shell which gcc-5),gcc-5,gcc) -export CXX = $(if $(shell which g++-5),g++-5,g++) +export CC = $(if $(shell which gcc-5 2>/dev/null),gcc-5,gcc) +export CXX = $(if $(shell which g++-5 2>/dev/null),g++-5,g++) export MPICXX = mpicxx export LDFLAGS= -pthread -lm