Include memleaks plugin support for experimental_ios_test
--
MOS_MIGRATED_REVID=105876178
diff --git a/tools/objc/BUILD b/tools/objc/BUILD
index 46b0e47..897eac6e 100644
--- a/tools/objc/BUILD
+++ b/tools/objc/BUILD
@@ -46,6 +46,11 @@
srcs = [":testrunner_stub"],
)
+filegroup(
+ name = "memleaks_plugin",
+ srcs = [":memleaks_plugin_stub"],
+)
+
sh_binary(
name = "ibtoolwrapper",
srcs = [":ibtoolwrapper.sh"],
diff --git a/tools/objc/memleaks/BUILD b/tools/objc/memleaks/BUILD
new file mode 100644
index 0000000..3cfe42f
--- /dev/null
+++ b/tools/objc/memleaks/BUILD
@@ -0,0 +1,11 @@
+package(default_visibility = ["//visibility:public"])
+
+filegroup(
+ name = "memleaks",
+ srcs = [":memleaks_stub"],
+)
+
+filegroup(
+ name = "srcs",
+ srcs = glob(["**"]),
+)
diff --git a/tools/objc/memleaks/memleaks_stub b/tools/objc/memleaks/memleaks_stub
new file mode 100644
index 0000000..9e6a18f
--- /dev/null
+++ b/tools/objc/memleaks/memleaks_stub
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+(
+ printf 'Bazel does not yet support memleaks detection for ios_tests.\n'
+) >&2
+
+exit 1
diff --git a/tools/objc/memleaks_plugin_stub b/tools/objc/memleaks_plugin_stub
new file mode 100644
index 0000000..9e6a18f
--- /dev/null
+++ b/tools/objc/memleaks_plugin_stub
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+(
+ printf 'Bazel does not yet support memleaks detection for ios_tests.\n'
+) >&2
+
+exit 1