File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -711,6 +711,14 @@ int main() { LLVMContext &Context = getGlobalContext(); }
711
711
check_tool_version @cc , '-dumpversion' , [ 4 , 1 ]
712
712
check_tool_version @cxx , '-dumpversion' , [ 4 , 1 ]
713
713
714
+ unless @cc == "clang" and @cxx == "clang++"
715
+ @log . deprecated <<-EOM
716
+ Support for compilers other than clang/clang++ is deprecated and will be
717
+ removed soon. If your platform does not have support for clang/clang++,
718
+ please notify us.
719
+ EOM
720
+ end
721
+
714
722
@make ||= ENV [ 'MAKE' ] || 'make'
715
723
@rake ||= ENV [ 'RAKE' ] || 'rake'
716
724
@tar ||= ENV [ 'TAR' ] || ( @windows ? 'bsdtar' : 'tar' )
@@ -1973,6 +1981,21 @@ Available commands are:
1973
1981
STDERR . puts message
1974
1982
end
1975
1983
1984
+ DEPRECATION_HEADER =
1985
+ "------------------------------ Deprecation notice ------------------------------"
1986
+ DEPRECATION_FOOTER =
1987
+ "--------------------------------------------------------------------------------"
1988
+
1989
+ def deprecated ( message )
1990
+ log DEPRECATION_HEADER , true
1991
+ log message , true
1992
+ log DEPRECATION_FOOTER , true
1993
+
1994
+ STDERR . puts DEPRECATION_HEADER
1995
+ STDERR . puts message
1996
+ STDERR . puts DEPRECATION_FOOTER
1997
+ end
1998
+
1976
1999
# Yields an IO for writing log messages.
1977
2000
def output
1978
2001
File . open @path , "a" do |f |
You can’t perform that action at this time.
0 commit comments