diff options
| author | cremno <[email protected]> | 2016-03-22 11:41:16 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2016-03-22 11:41:16 +0100 |
| commit | bfc7b2e30fe2d35ffddf56ea7ccff178cc9b7e9b (patch) | |
| tree | 7d158c1dba8619f560b9b47ae0149ebd628bb15b /tasks | |
| parent | 611e99e7417695aa70bc3d28d26d219ba29bc7e7 (diff) | |
| download | mruby-bfc7b2e30fe2d35ffddf56ea7ccff178cc9b7e9b.tar.gz mruby-bfc7b2e30fe2d35ffddf56ea7ccff178cc9b7e9b.zip | |
deprecate Visual Studio 2010 and 2012
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/toolchains/visualcpp.rake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tasks/toolchains/visualcpp.rake b/tasks/toolchains/visualcpp.rake index 3d273900e..7a02eafe6 100644 --- a/tasks/toolchains/visualcpp.rake +++ b/tasks/toolchains/visualcpp.rake @@ -50,4 +50,15 @@ MRuby::Toolchain.new(:visualcpp) do |conf, _params| end conf.file_separator = '\\' + + 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 + m = "# VS2010/2012 support will be dropped after the next release! #" + h = "#" * m.length + puts h, m, h + end + end + end + end |
