aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-15 04:05:32 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-15 04:05:32 +0000
commit377fa0c57f31c65ccb02009361098192b303a47e (patch)
treec34cdcca426e5c77a376819d1c611c4b8765d99b
parenta402731ae68495a32ad12d7913a4587cacdcb43e (diff)
downloadruby-377fa0c57f31c65ccb02009361098192b303a47e.tar.gz
detect clang++
Given $CC is clang-* in this case branch the sed should match against clang, not gcc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1f8c61f355..e887ddd3bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -198,7 +198,7 @@ AS_CASE([$CC],
gcc_prefix=gcc- gcc_suffix=`echo "$CC" | sed 's/^gcc//'`
AC_PROG_CXX(g++${gcc_suffix})],
[clang-*], [
- gcc_prefix=clang- gcc_suffix=`echo "$CC" | sed 's/^gcc//'`
+ gcc_prefix=clang- gcc_suffix=`echo "$CC" | sed 's/^clang//'`
AC_PROG_CXX(clang++${gcc_suffix})],
[gcc_prefix= gcc_suffix=])