Skip to content

Commit

Permalink
Make swift_library not generate an Objective-C header by default.
Browse files Browse the repository at this point in the history
To generate a header, `generates_header` must be set to `True` on the target.

PiperOrigin-RevId: 367012879
(cherry picked from commit 413cc02)
  • Loading branch information
allevato authored and keith committed Apr 6, 2021
1 parent 430311c commit f81fa6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions swift/internal/attrs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ False.
mandatory = False,
),
"generates_header": attr.bool(
# TODO(b/182493307): Make the default False after migrating all
# targets to explicitly specify it when needed.
default = True,
default = False,
doc = """\
If True, an Objective-C header will be generated for this target, in the same
build package where the target is defined. By default, the name of the header is
Expand Down

0 comments on commit f81fa6f

Please sign in to comment.