Add `visibility` to the IR rule.
This is accomplished by allowing `visibility` to be picked up by
`kwargs`.
diff --git a/build_defs.bzl b/build_defs.bzl
index 80bdd20..781f99e 100644
--- a/build_defs.bzl
+++ b/build_defs.bzl
@@ -26,7 +26,7 @@
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain")
-def emboss_cc_library(name, srcs, deps = [], visibility = None, import_dirs = [], enable_enum_traits = True, **kwargs):
+def emboss_cc_library(name, srcs, deps = [], import_dirs = [], enable_enum_traits = True, **kwargs):
"""Constructs a C++ library from an .emb file."""
if len(srcs) != 1:
fail(
@@ -45,7 +45,6 @@
cc_emboss_library(
name = name,
deps = [":" + name + "_ir"],
- visibility = visibility,
enable_enum_traits = enable_enum_traits,
**kwargs
)