Skip to content

Commit 0d0129a

Browse files
committed
Build with 2.3
1 parent 6dc2518 commit 0d0129a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/contributor/workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ they might need to add `export SDKROOT=$(xcrun --show-sdk-path)` to their shell
99

1010
Additionally, you will need:
1111

12-
* Ruby >= 2.4
12+
* Ruby >= 2.3 (we stick at this version as it is available all the way back to for example Ubuntu 16.04)
1313
* [CMake](https://cmake.org/), for building Sulong (GraalVM's LLVM support)
1414
CMake can be installed via the usual methods: `dnf`, `apt-get`, `brew`, ...)
1515

tool/generate-core-symbols.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<% ids[:token_op].uniq {|_, op| op}.each do |id, op, token| %><% if token %>
105105
public static final RubySymbol <%=token%> = createRubySymbol("<%=op%>", <%=index%>);<% index += 1 %><% end %><% end %>
106106
<% ids[:preserved].each do |token| %><% if ids[:predefined][token] %>
107-
public static final RubySymbol <%=token.start_with?('_') ? token[1..].upcase : token.upcase%> = createRubySymbol("<%=token == 'NULL' ? '' : ids[:predefined][token]%>", <%=index%>);<% index += 1 %><% else %>
107+
public static final RubySymbol <%=token.start_with?('_') ? token[1..-1].upcase : token.upcase%> = createRubySymbol("<%=token == 'NULL' ? '' : ids[:predefined][token]%>", <%=index%>);<% index += 1 %><% else %>
108108
// Skipped preserved token: `<%=token%>`<% index += 1 %><% end %><% end %>
109109
public static final int LAST_OP_ID = <%=index-1%>;
110110
<% types.each do |type| %><% tokens = ids[type] %><% tokens.each do |token| %>

0 commit comments

Comments
 (0)