Skip to content

Commit 0f7189c

Browse files
committedJan 1, 2016
Deprecate non-clang/clang++ compilers.
1 parent 6bb384d commit 0f7189c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
 

Diff for: ‎configure

+23
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,14 @@ int main() { LLVMContext &Context = getGlobalContext(); }
711711
check_tool_version @cc, '-dumpversion', [4, 1]
712712
check_tool_version @cxx, '-dumpversion', [4, 1]
713713

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+
714722
@make ||= ENV['MAKE'] || 'make'
715723
@rake ||= ENV['RAKE'] || 'rake'
716724
@tar ||= ENV['TAR'] || (@windows ? 'bsdtar' : 'tar')
@@ -1973,6 +1981,21 @@ Available commands are:
19731981
STDERR.puts message
19741982
end
19751983

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+
19761999
# Yields an IO for writing log messages.
19772000
def output
19782001
File.open @path, "a" do |f|

0 commit comments

Comments
 (0)
Please sign in to comment.