summaryrefslogtreecommitdiff
path: root/tool/transcode-tblgen.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/transcode-tblgen.rb')
-rw-r--r--tool/transcode-tblgen.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index f43627b..6a896ad 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -1078,7 +1078,11 @@ if __FILE__ == $0
end
libs1 = $".dup
- erb = ERB.new(src, nil, '%')
+ if RUBY_VERSION >= '2.6'
+ erb = ERB.new(src, trim_mode: '%')
+ else
+ erb = ERB.new(src, nil, '%')
+ end
erb.filename = arg
erb_result = erb.result(binding)
libs2 = $".dup