ruby-changes:52870
From: shyouhei <ko1@a...>
Date: Mon, 15 Oct 2018 13:05:38 +0900 (JST)
Subject: [ruby-changes:52870] shyouhei:r65082 (trunk): detect clang++
shyouhei 2018-10-15 13:05:32 +0900 (Mon, 15 Oct 2018) New Revision: 65082 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65082 Log: detect clang++ Given $CC is clang-* in this case branch the sed should match against clang, not gcc. Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 65081) +++ configure.ac (revision 65082) @@ -198,7 +198,7 @@ AS_CASE([$CC], https://github.com/ruby/ruby/blob/trunk/configure.ac#L198 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=]) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/