Skip to content

Commit 32c2cd8

Browse files
committed
Fix library path for old rubygems
1 parent c4a89c2 commit 32c2cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/libv8-node/paths.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def object_paths
2020
end
2121

2222
def platform
23-
Gem::Platform.local.to_s.gsub(/-darwin-?\d+/, '-darwin')
23+
Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }.to_s.gsub(/-darwin-?\d+/, '-darwin')
2424
end
2525

2626
def config

0 commit comments

Comments
 (0)