File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ def graal_common_json
184
184
"#{ GRAAL_DIR } /common.json"
185
185
end
186
186
187
+ def truffleruby_common_json
188
+ "#{ TRUFFLERUBY_DIR } /common.json"
189
+ end
190
+
187
191
def jvmci_version
188
192
@jvmci_version ||= begin
189
193
sforceimports unless File . directory? ( GRAAL_DIR )
@@ -219,9 +223,9 @@ def find_mx
219
223
if which ( 'mx' )
220
224
'mx'
221
225
else
222
- common_json = File . read ( graal_common_json )
226
+ common_json = File . read ( truffleruby_common_json )
223
227
regex = /"mx_version":\s *"([^"]+)"/
224
- raise "mx version not found in #{ graal_common_json } " unless regex =~ common_json
228
+ raise "mx version not found in #{ truffleruby_common_json } " unless regex =~ common_json
225
229
mx_version = $1
226
230
mx_repo = find_or_clone_repo ( 'https://github.com/graalvm/mx.git' , mx_version )
227
231
"#{ mx_repo } /mx"
You can’t perform that action at this time.
0 commit comments