File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
truffle/rubygems/defaults Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ def self.match_spec?(spec)
36
36
match_gem? ( spec . platform , spec . name )
37
37
end
38
38
39
- REUSE_AS_BINARY_ON_TRUFFLERUBY = %w[ libv8 libv8-node sorbet-static ]
40
-
41
39
def self . match_gem? ( platform , gem_name )
42
40
raise unless String === gem_name
43
41
if REUSE_AS_BINARY_ON_TRUFFLERUBY . include? ( gem_name )
Original file line number Diff line number Diff line change @@ -24,8 +24,11 @@ def self.default_dir
24
24
25
25
def self . platform_defaults
26
26
# disable documentation by default as it takes a significant amount of time for installing gems and is rarely used
27
- {
28
- 'gem' => '--no-document'
29
- }
27
+ { 'gem' => '--no-document' }
30
28
end
31
29
end
30
+
31
+ class Gem ::Platform
32
+ # The list of gems we want to install precompiled (using the local platform) on TruffleRuby
33
+ REUSE_AS_BINARY_ON_TRUFFLERUBY = %w[ libv8 libv8-node sorbet-static ]
34
+ end
You can’t perform that action at this time.
0 commit comments