Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit 413cc02

Browse files
allevatoswiple-rules-gardener
authored andcommitted
Make swift_library not generate an Objective-C header by default.
To generate a header, `generates_header` must be set to `True` on the target. PiperOrigin-RevId: 367012879
1 parent d27e5a6 commit 413cc02

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

swift/internal/attrs.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,7 @@ False.
280280
mandatory = False,
281281
),
282282
"generates_header": attr.bool(
283-
# TODO(b/182493307): Make the default False after migrating all
284-
# targets to explicitly specify it when needed.
285-
default = True,
283+
default = False,
286284
doc = """\
287285
If True, an Objective-C header will be generated for this target, in the same
288286
build package where the target is defined. By default, the name of the header is

0 commit comments

Comments
 (0)