Skip to content

Commit 299c4d8

Browse files
committed
Fix host Ruby runtime loading for JRuby on Linux
1 parent 976ee03 commit 299c4d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ruby/private/toolchains/ruby_runtime.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ def _list_libdirs(ruby):
4747
def _install_dirs(ctx, ruby, *names):
4848
paths = sorted([ruby.rbconfig(ruby, name) for name in names])
4949

50+
# JRuby reports some of the directories as nulls.
51+
paths = [path for path in paths if path]
52+
5053
# Sometimes we end up with the same directory multiple times
5154
# so make sure paths are unique by converting it to set.
5255
# For example, this is what we have on Fedora 34:

0 commit comments

Comments
 (0)