summaryrefslogtreecommitdiff
path: root/dist/examples/build/cxx/compilers.make
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-06 15:24:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-06 15:24:06 +0200
commita5aa10698617f236bac9edcc621b90eecbd6fbc4 (patch)
tree8d458e5faf133ccab3595f0b57c284cb1f116416 /dist/examples/build/cxx/compilers.make
parenta6f85da576d5d1fafce01bb6c3070c408adba913 (diff)
Detect and handle Clang in build system for examples
Diffstat (limited to 'dist/examples/build/cxx/compilers.make')
-rw-r--r--dist/examples/build/cxx/compilers.make14
1 files changed, 14 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),)