summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-04-16 23:27:15 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-04-16 23:27:15 +0900
commite5c2013829483b6322d8d1cca9f6564531ae1b64 (patch)
tree325403c6b51cc4552bf643e08bf04a0a468272b5
parentfa1a17cbc45216c08d4d73b1eabc03bdfa3c372d (diff)
parent451523ff02a649009a9e75cdeafd94d686455b2a (diff)
downloadmruby-e5c2013829483b6322d8d1cca9f6564531ae1b64.tar.gz
mruby-e5c2013829483b6322d8d1cca9f6564531ae1b64.zip
Merge pull request #3147 from ksss/1.8
Avoid Syntax Error on CRuby v1.8
-rw-r--r--tasks/toolchains/visualcpp.rake2
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