aboutsummaryrefslogtreecommitdiffstats
path: root/tool/transcode-tblgen.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-24 02:58:41 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-24 02:58:41 +0000
commit50042de75d96cd00bc22565a5d471033793ee1ce (patch)
treed5cf3fef85fe15d9726b3284d3bad4adf1d83755 /tool/transcode-tblgen.rb
parent628706d9323aaea8fcf2256f18d18dc2bfcba46b (diff)
downloadruby-50042de75d96cd00bc22565a5d471033793ee1ce.tar.gz
Judge ERB version not RUBY_VERSION but ERB.version
On cross compilation, ruby command uses fake RUBY_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/transcode-tblgen.rb')
-rw-r--r--tool/transcode-tblgen.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index 6a896ad392..4e829314b2 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -1078,7 +1078,7 @@ if __FILE__ == $0
end
libs1 = $".dup
- if RUBY_VERSION >= '2.6'
+ if ERB.version[/\d+\.\d+/] >= '2.2'
erb = ERB.new(src, trim_mode: '%')
else
erb = ERB.new(src, nil, '%')