From 68c437d0fdf5019e41dba32bb6810213bea638cb Mon Sep 17 00:00:00 2001 From: Tim Warren Date: Wed, 22 Apr 2015 09:03:48 -0400 Subject: [PATCH] Fix detection of clang compiler --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4afb633..1b8c2bf 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ #Try using clang, if it's installed -ifneq ($(shell which clang),clang not found) - CXX = $(patsubst g++,clang++, $(shell wx-config --cxx)) -std=c++11 -I/include +ifneq ($(shell command -v clang),) + CC = clang + CXX = $(patsubst g++,clang++, $(shell wx-config --cxx)) -std=c++98 -I/include else CXX = $(shell wx-config --cxx) -I/include endif