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

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
  • Loading branch information
allevato authored and swiple-rules-gardener committed Apr 6, 2021
1 parent d27e5a6 commit 413cc02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions swift/internal/attrs.bzl
Expand Up @@ -280,9 +280,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 413cc02

Please sign in to comment.