Skip to content

Commit

Permalink
go_binary: fix pgoprofile default
Browse files Browse the repository at this point in the history
This fixes bazel-contrib#4226.
  • Loading branch information
rickystewart committed Jan 14, 2025
1 parent 548c13b commit 0351f46
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions go/private/rules/binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,13 @@ _go_binary_kwargs = {
</ul>
""",
),
"pgoprofile": attr.label(
allow_files = True,
"pgoprofile": attr.string(
doc = """Provides a pprof file to be used for profile guided optimization when compiling go targets.
A pprof file can also be provided via `--@io_bazel_rules_go//go/config:pgoprofile=<label of a pprof file>`.
Profile guided optimization is only supported on go 1.20+.
See https://go.dev/doc/pgo for more information.
""",
default = "//go/config:empty",
default = "auto",
),
"_go_context_data": attr.label(default = "//:go_context_data", cfg = go_transition),
"_allowlist_function_transition": attr.label(
Expand Down

0 comments on commit 0351f46

Please sign in to comment.