Commit 451523ff authored by ksss's avatar ksss

Avoid Syntax Error on CRuby v1.8

CRuby v1.8 dose not support named capture
parent fa1a17cb
......@@ -53,7 +53,7 @@ MRuby::Toolchain.new(:visualcpp) do |conf, _params|
if require 'open3'
Open3.popen3 conf.cc.command do |_, _, e, _|
if /Version (?<v>\d{2}\.\d{2}\.\d{5})/ =~ e.gets && v.to_i <= 17
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
......
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