Make @bazel_tools//tools/build_defs/cc/action_names.bzl work for bazel osx tests

RELNOTES: None.
PiperOrigin-RevId: 201941079
diff --git a/tools/build_defs/cc/BUILD b/tools/build_defs/cc/BUILD
index 9405d4a..e17abbd 100644
--- a/tools/build_defs/cc/BUILD
+++ b/tools/build_defs/cc/BUILD
@@ -10,3 +10,12 @@
         "//tools:__pkg__",
     ],
 )
+
+# bazel_osx_p4deps specifies the set of dependencies needed to run Bazel on OS X.
+# Consumed by Google internal tests.
+filegroup(
+    name = "bazel_osx_p4deps",
+    testonly = 1,
+    srcs = glob(["**"]),
+    visibility = ["//tools/osx:__pkg__"],
+)