Skip to content
Permalink
Browse files
Deprecate non-clang/clang++ compilers.
  • Loading branch information
brixen committed Jan 1, 2016
1 parent 6bb384d commit 0f7189c7d189f837c49df941b008229387a14573
Showing with 23 additions and 0 deletions.
  1. +23 −0 configure
@@ -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.