Skip to content

Commit f81fa6f

Browse files
allevatokeith
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 (cherry picked from commit 413cc02)
1 parent 430311c commit f81fa6f

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
@@ -277,9 +277,7 @@ False.
277277
mandatory = False,
278278
),
279279
"generates_header": attr.bool(
280-
# TODO(b/182493307): Make the default False after migrating all
281-
# targets to explicitly specify it when needed.
282-
default = True,
280+
default = False,
283281
doc = """\
284282
If True, an Objective-C header will be generated for this target, in the same
285283
build package where the target is defined. By default, the name of the header is

0 commit comments

Comments
 (0)