Skip to content

Commit e9db423

Browse files
Adam CozzetteJasonLunn
authored andcommitted
Set allow_empty = True on file globs
This allows everything to build successfully with the `--incompatible_disallow_empty_glob` flag, which will eventually by enabled by default. I believe these particular globs are expected to be empty if Ruby is not installed locally.
1 parent f4de0fb commit e9db423

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/private/toolchains/ruby_runtime.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ sh_binary(
7474
7575
cc_import(
7676
name = "libruby",
77-
hdrs = glob({hdrs}),
77+
hdrs = glob({hdrs}, allow_empty = True),
7878
shared_library = {shared_library},
7979
static_library = {static_library},
8080
)
8181
8282
cc_library(
8383
name = "headers",
84-
hdrs = glob({hdrs}),
84+
hdrs = glob({hdrs}, allow_empty = True),
8585
includes = {includes},
8686
)
8787

0 commit comments

Comments
 (0)