Skip to content

Commit aa76655

Browse files
committed
go_binary: fix pgoprofile default (#24)
This fixes bazel-contrib#4226.
1 parent 929ae31 commit aa76655

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

go/private/rules/binary.bzl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,13 @@ def _go_binary_kwargs(go_cc_aspects = []):
437437
</ul>
438438
""",
439439
),
440-
"pgoprofile": attr.label(
441-
allow_files = True,
440+
"pgoprofile": attr.string(
442441
doc = """Provides a pprof file to be used for profile guided optimization when compiling go targets.
443442
A pprof file can also be provided via `--@io_bazel_rules_go//go/config:pgoprofile=<label of a pprof file>`.
444443
Profile guided optimization is only supported on go 1.20+.
445444
See https://go.dev/doc/pgo for more information.
446445
""",
447-
default = "//go/config:empty",
446+
default = "auto",
448447
),
449448
"_go_context_data": attr.label(default = "//:go_context_data", cfg = go_transition),
450449
"_allowlist_function_transition": attr.label(

0 commit comments

Comments
 (0)