Skip to content

Commit

Permalink
Display JIT support when it's enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 23, 2021
1 parent 7ff2ce4 commit 0c5865e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion views/footer.rhtml
@@ -1,7 +1,11 @@
<%%=footer_proc%>
<div class="footer">
Generated by <a href="https://www.tdiary.org/">tDiary</a> version <%=h TDIARY_VERSION %><br>
Powered by <a href="https://www.ruby-lang.org/">Ruby</a> version <%=h RUBY_VERSION %><%=h( RUBY_PATCHLEVEL >= 0 ? "-p#{RUBY_PATCHLEVEL}" : "dev-#{RUBY_RELEASE_DATE}" ) rescue ''%><% if /ruby/i =~ @cgi.gateway_interface %> with <a href="https://github.com/shugo/mod_ruby">mod_ruby</a><% elsif defined?(FCGI) %> with <a href="https://github.com/alphallc/ruby-fcgi-ng">ruby-fcgi-ng</a><% end %>
Powered by <a href="https://www.ruby-lang.org/">Ruby</a> version <%=h RUBY_VERSION %><%=h( RUBY_PATCHLEVEL >= 0 ? "-p#{RUBY_PATCHLEVEL}" : "dev-#{RUBY_RELEASE_DATE}" ) rescue ''%>
<% if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? || defined?(RubyVM::JIT) && RubyVM::JIT.enabled? %> +JIT<% end %>
<% if /ruby/i =~ @cgi.gateway_interface %> with <a href="https://github.com/shugo/mod_ruby">mod_ruby</a>
<% elsif defined?(FCGI) %> with <a href="https://github.com/alphallc/ruby-fcgi-ng">ruby-fcgi-ng</a>
<% end %>
</div>
</div>
</body>
Expand Down

0 comments on commit 0c5865e

Please sign in to comment.