File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -686,14 +686,22 @@ int main() { LLVMContext &Context = getGlobalContext(); }
686
686
exit 1
687
687
end
688
688
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
+
689
697
def default_cc
690
698
return 'clang' if `clang --version > /dev/null 2>&1` && $?. success?
691
- return 'gcc'
699
+ supported_compiler "clang C"
692
700
end
693
701
694
702
def default_cxx
695
703
return 'clang++' if `clang++ --version > /dev/null 2>&1` && $?. success?
696
- return 'g++'
704
+ supported_compiler "clang++ C++"
697
705
end
698
706
699
707
def check_tools
@@ -703,13 +711,8 @@ int main() { LLVMContext &Context = getGlobalContext(); }
703
711
check_tool_version @cc , '-dumpversion' , [ 4 , 1 ]
704
712
check_tool_version @cxx , '-dumpversion' , [ 4 , 1 ]
705
713
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\+ \+ /
713
716
714
717
if File . exist? @build_bin
715
718
if !File . directory? @build_bin
You can’t perform that action at this time.
0 commit comments