diff options
| author | ksss <[email protected]> | 2016-04-16 22:39:09 +0900 |
|---|---|---|
| committer | ksss <[email protected]> | 2016-04-16 22:39:09 +0900 |
| commit | 451523ff02a649009a9e75cdeafd94d686455b2a (patch) | |
| tree | 325403c6b51cc4552bf643e08bf04a0a468272b5 /tasks | |
| parent | fa1a17cbc45216c08d4d73b1eabc03bdfa3c372d (diff) | |
| download | mruby-451523ff02a649009a9e75cdeafd94d686455b2a.tar.gz mruby-451523ff02a649009a9e75cdeafd94d686455b2a.zip | |
Avoid Syntax Error on CRuby v1.8
CRuby v1.8 dose not support named capture
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/toolchains/visualcpp.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/toolchains/visualcpp.rake b/tasks/toolchains/visualcpp.rake index 7a02eafe6..52820656b 100644 --- a/tasks/toolchains/visualcpp.rake +++ b/tasks/toolchains/visualcpp.rake @@ -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 |
