Make output_file accessible from strip.

BEGIN_PUBLIC
Make output_file accessible from strip.

See https://github.com/bazelbuild/bazel/pull/22638
END_PUBLIC

PiperOrigin-RevId: 640622335
Change-Id: I96fdca9494e5043f546b588490d692d67f94ee2b
diff --git a/cc/toolchains/variables/BUILD b/cc/toolchains/variables/BUILD
index ec07287..d0c8977 100644
--- a/cc/toolchains/variables/BUILD
+++ b/cc/toolchains/variables/BUILD
@@ -261,7 +261,10 @@
 
 cc_variable(
     name = "output_file",
-    actions = ["//cc/toolchains/actions:compile_actions"],
+    actions = [
+        "//cc/toolchains/actions:compile_actions",
+        "//cc/toolchains/actions:strip",
+    ],
     type = types.file,
 )