diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-24 02:58:41 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-24 02:58:41 +0000 |
commit | b81538d2592f24ae9927ead4fb4909cc74ada570 (patch) | |
tree | d5cf3fef85fe15d9726b3284d3bad4adf1d83755 /tool/transcode-tblgen.rb | |
parent | 22acbed6624e088543e8ceae3a1112ab08c69a16 (diff) | |
download | ruby-b81538d2592f24ae9927ead4fb4909cc74ada570.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.rb | 2 |
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, '%') |