Allow multiple module interfaces per `cc_library` (#545)
This is now supported in Bazel (HEAD and 9.0.0) since https://github.com/bazelbuild/bazel/pull/27927.
Closes #545
PiperOrigin-RevId: 844562596
Change-Id: I211632321dd4c2f9b62a86f0f82dbbfc3e5bdaf9
diff --git a/src/main/starlark/builtins_bzl/common/cc/compile/compile.bzl b/src/main/starlark/builtins_bzl/common/cc/compile/compile.bzl
index f92286d..23cb380 100644
--- a/src/main/starlark/builtins_bzl/common/cc/compile/compile.bzl
+++ b/src/main/starlark/builtins_bzl/common/cc/compile/compile.bzl
@@ -243,9 +243,6 @@
if module_interfaces and not feature_configuration.is_enabled("cpp_modules"):
fail("to use C++20 Modules, the feature cpp_modules must be enabled")
- if module_interfaces and len(module_interfaces) > 1:
- fail("module_interfaces must be a list of files with exactly one file " +
- "due to implementation limitation. see https://github.com/bazelbuild/bazel/pull/22553")
language_normalized = "c++" if language == None else language
language_normalized = language_normalized.replace("+", "p").upper()