Skip to content

Commit

Permalink
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions configure
Original file line number Diff line number Diff line change
@@ -711,6 +711,14 @@ int main() { LLVMContext &Context = getGlobalContext(); }
check_tool_version @cc, '-dumpversion', [4, 1]
check_tool_version @cxx, '-dumpversion', [4, 1]

unless @cc == "clang" and @cxx == "clang++"
@log.deprecated <<-EOM
Support for compilers other than clang/clang++ is deprecated and will be
removed soon. If your platform does not have support for clang/clang++,
please notify us.
EOM
end

@make ||= ENV['MAKE'] || 'make'
@rake ||= ENV['RAKE'] || 'rake'
@tar ||= ENV['TAR'] || (@windows ? 'bsdtar' : 'tar')
@@ -1973,6 +1981,21 @@ Available commands are:
STDERR.puts message
end

DEPRECATION_HEADER =
"------------------------------ Deprecation notice ------------------------------"
DEPRECATION_FOOTER =
"--------------------------------------------------------------------------------"

def deprecated(message)
log DEPRECATION_HEADER, true
log message, true
log DEPRECATION_FOOTER, true

STDERR.puts DEPRECATION_HEADER
STDERR.puts message
STDERR.puts DEPRECATION_FOOTER
end

# Yields an IO for writing log messages.
def output
File.open @path, "a" do |f|

0 comments on commit 0f7189c

Please sign in to comment.