Skip to content

Commit bfc7b2e

Browse files
committed
deprecate Visual Studio 2010 and 2012
1 parent 611e99e commit bfc7b2e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tasks/toolchains/visualcpp.rake

+11
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,15 @@ MRuby::Toolchain.new(:visualcpp) do |conf, _params|
5050
end
5151

5252
conf.file_separator = '\\'
53+
54+
if require 'open3'
55+
Open3.popen3 conf.cc.command do |_, _, e, _|
56+
if /Version (?<v>\d{2}\.\d{2}\.\d{5})/ =~ e.gets && v.to_i <= 17
57+
m = "# VS2010/2012 support will be dropped after the next release! #"
58+
h = "#" * m.length
59+
puts h, m, h
60+
end
61+
end
62+
end
63+
5364
end

0 commit comments

Comments
 (0)