Skip to content

Commit 43c2b57

Browse files
dsharletgxnnpack-bot
authored andcommitted
Fix perfetto dependency in open source
I was hoping that a missing repo that wasn't used by any target was OK, and it was in the XNNPACK repo, but it is not in the XLA repo (which has some bazel query tests). PiperOrigin-RevId: 824582315
1 parent 1182a9e commit 43c2b57

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

ynnpack/subgraph/BUILD

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,22 @@ define_build_option(
2727
default_all = [],
2828
)
2929

30-
# The capability to capture perfetto traces is disabled by default. To enable and use it, add:
31-
#
32-
# git_repository(name = "perfetto", branch = "main", remote = "https://github.com/google/perfetto")
33-
#
34-
# To MODULE.bazel, and then add `--define ynn_enable_perfetto=true` to the bazel command line.
3530
cc_library(
3631
name = "perfetto",
3732
srcs = ["perfetto.cc"],
3833
hdrs = ["perfetto.h"],
3934
compatible_with = _COMPATIBLE_WITH,
4035
defines = ["YNN_ENABLE_PERFETTO"],
4136
tags = ["manual"],
42-
deps = ["@perfetto//:libperfetto_client_experimental"],
37+
deps = [
38+
# The capability to capture perfetto traces is disabled by default. To enable and use it:add:
39+
#
40+
# git_repository(name = "perfetto", branch = "main", remote = "https://github.com/google/perfetto")
41+
#
42+
# To MODULE.bazel, add `--define ynn_enable_perfetto=true` to the bazel command line, and
43+
# uncomment this dependency.
44+
# "@perfetto//:libperfetto_client_experimental"
45+
],
4346
)
4447

4548
cc_library(

0 commit comments

Comments
 (0)