Unverified Commit 2c84d948 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #3915 from llothar/master

Uncommented the Visual Studio version check 
parents 4790f28d a9d0d90f
......@@ -55,14 +55,15 @@ MRuby::Toolchain.new(:visualcpp) do |conf, _params|
conf.file_separator = '\\'
if require 'open3'
Open3.popen3 conf.cc.command do |_, _, e, _|
if /Version (\d{2})\.\d{2}\.\d{5}/ =~ e.gets && $1.to_i <= 17
m = "# VS2010/2012 support will be dropped after the next release! #"
h = "#" * m.length
puts h, m, h
end
end
end
# Unreliable detection and will result in invalid encoding errors for localized versions of Visual C++
# if require 'open3'
# Open3.popen3 conf.cc.command do |_, _, e, _|
# if /Version (\d{2})\.\d{2}\.\d{5}/ =~ e.gets && $1.to_i <= 17
# m = "# VS2010/2012 support will be dropped after the next release! #"
# h = "#" * m.length
# puts h, m, h
# end
# end
# end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment