Skip to content

Commit 9ecb040

Browse files
committedJul 14, 2016
Removed GCC support.
1 parent 53905be commit 9ecb040

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed
 

‎configure

+12-9
Original file line numberDiff line numberDiff line change
@@ -686,14 +686,22 @@ int main() { LLVMContext &Context = getGlobalContext(); }
686686
exit 1
687687
end
688688

689+
def supported_compiler(name)
690+
failure <<-EOM
691+
Unable to find #{name} compiler. Support for compilers other than #{name}
692+
compiler was deprecated 1 Jun 2016 and has been removed. If your platform does
693+
not support #{name} compiler, please email contact@rubinius.com
694+
EOM
695+
end
696+
689697
def default_cc
690698
return 'clang' if `clang --version > /dev/null 2>&1` && $?.success?
691-
return 'gcc'
699+
supported_compiler "clang C"
692700
end
693701

694702
def default_cxx
695703
return 'clang++' if `clang++ --version > /dev/null 2>&1` && $?.success?
696-
return 'g++'
704+
supported_compiler "clang++ C++"
697705
end
698706

699707
def check_tools
@@ -703,13 +711,8 @@ int main() { LLVMContext &Context = getGlobalContext(); }
703711
check_tool_version @cc, '-dumpversion', [4, 1]
704712
check_tool_version @cxx, '-dumpversion', [4, 1]
705713

706-
unless @cc =~ /clang/ and @cxx =~ /clang\+\+/
707-
@log.deprecated <<-EOM
708-
Support for compilers other than clang/clang++ is deprecated and will be
709-
removed soon. If your platform does not have support for clang/clang++,
710-
please notify us.
711-
EOM
712-
end
714+
supported_compiler "clang C" unless @cc =~ /clang/
715+
supported_compiler "clang++ C++" unless @cxx =~ /clang\+\+/
713716

714717
if File.exist? @build_bin
715718
if !File.directory? @build_bin

0 commit comments

Comments
 (0)