Skip to content

Commit

Permalink
go_binary: fix pgoprofile default (#24)
Browse files Browse the repository at this point in the history
This fixes bazel-contrib#4226.
  • Loading branch information
rickystewart committed Mar 5, 2025
1 parent 8fb5279 commit f43cb04
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 @@ -436,14 +436,13 @@ def _go_binary_kwargs(go_cc_aspects = []):
</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 f43cb04

Please sign in to comment.