about summary refs log tree commit diff
path: root/pkgs/development/compilers/graalvm/005_tool_jt.rb.patch
blob: 06f693db9f637699b5f56ddcba7c7fb40d989d13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
diff --git a/tool/jt.rb b/tool/jt.rb
index 870d88edcb..0a6e4c367b 100755
--- a/tool/jt.rb
+++ b/tool/jt.rb
@@ -152,13 +152,16 @@ module Utilities
   end
 
   def find_mx
-    if which('mx')
-      'mx'
+    if ENV.key?("MX_GIT_CACHE_DIR")
+      "mx-internal"
     else
-      mx_repo = find_or_clone_repo("https://github.com/graalvm/mx.git")
-      "#{mx_repo}/mx"
+      if which('mx')
+        'mx'
+      else
+        mx_repo = find_or_clone_repo("https://github.com/graalvm/mx.git")
+        "#{mx_repo}/mx"
+      end
     end
-  end
 
   def find_launcher(use_native)
     if use_native
@@ -444,8 +447,8 @@ module Commands
           --no-sforceimports                         do not run sforceimports before building
           parser                                     build the parser
           options                                    build the options
-          graalvm                                    build a minimal JVM-only GraalVM containing only TruffleRuby, 
-                                                     available by default in mxbuild/truffleruby-jvm, 
+          graalvm                                    build a minimal JVM-only GraalVM containing only TruffleRuby,
+                                                     available by default in mxbuild/truffleruby-jvm,
                                                      the Ruby is symlinked into rbenv or chruby if available
               --graal      include the GraalVM Compiler in the build
               --native     build native ruby image as well, available in mxbuild/truffleruby-native
@@ -491,7 +494,7 @@ module Commands
       jt test compiler                               run compiler tests
       jt test integration [TESTS]                    run integration tests
       jt test bundle [--jdebug]                      tests using bundler
-      jt test gems [TESTS]                           tests using gems 
+      jt test gems [TESTS]                           tests using gems
       jt test ecosystem [TESTS]                      tests using the wider ecosystem such as bundler, Rails, etc
       jt test cexts [--no-openssl] [--no-gems] [test_names...]
                                                      run C extension tests (set GEM_HOME)