From a5aa10698617f236bac9edcc621b90eecbd6fbc4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 6 Apr 2012 15:24:06 +0200 Subject: Detect and handle Clang in build system for examples --- dist/examples/build/cxx/rules.make | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dist/examples/build/cxx/rules.make') diff --git a/dist/examples/build/cxx/rules.make b/dist/examples/build/cxx/rules.make index ba521e1..541d700 100644 --- a/dist/examples/build/cxx/rules.make +++ b/dist/examples/build/cxx/rules.make @@ -12,6 +12,11 @@ ifeq ($(cxx_id),gnu) CXXFLAGS := -W -Wall -O3 endif +# Clang +# +ifeq ($(cxx_id),clang) + CXXFLAGS := -W -O3 +endif # Intel C++ # -- cgit v1.1