Merge "perfetto: remove output_to_genfiles parameter for protos" into main
diff --git a/bazel/proto_gen.bzl b/bazel/proto_gen.bzl
index f1b8bdd..cd31d44 100644
--- a/bazel/proto_gen.bzl
+++ b/bazel/proto_gen.bzl
@@ -29,7 +29,7 @@
 
     proto_path = "."
 
-    out_dir = str(ctx.genfiles_dir.path)
+    out_dir = ctx.bin_dir.path
     strip_base_path = ""
     if ctx.attr.root != "//":
         # This path is hit in Google internal builds, where root is typically
@@ -120,7 +120,6 @@
             default = "//",
         ),
     },
-    output_to_genfiles = True,
     implementation = _proto_gen_impl,
 )