summaryrefslogtreecommitdiff
path: root/dist/examples/build/cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/build/cxx')
-rw-r--r--dist/examples/build/cxx/compilers.make14
-rw-r--r--dist/examples/build/cxx/rules.make5
2 files changed, 19 insertions, 0 deletions
diff --git a/dist/examples/build/cxx/compilers.make b/dist/examples/build/cxx/compilers.make
index 54c8a13..514015d 100644
--- a/dist/examples/build/cxx/compilers.make
+++ b/dist/examples/build/cxx/compilers.make
@@ -40,6 +40,20 @@ cxx_id := gnu
endif
endif
+# Clang
+#
+ifeq ($(cxx_id),)
+ifeq ($(shell echo '$(cxx_sign)' | sed -e 's/^.* clang .*$$//'),)
+cxx_id := clang
+endif
+endif
+
+ifeq ($(cxx_id),)
+ifeq ($(shell echo '$(cxx_sign)' | sed -e 's/^.* Clang .*$$//'),)
+cxx_id := clang
+endif
+endif
+
# Sun C++ (CC)
#
ifeq ($(cxx_id),)
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++
#