Skip to content

Commit

Permalink
Improve objc header detection (#283)
Browse files Browse the repository at this point in the history
This fixes the logic introduced in #281.
  • Loading branch information
jparise committed Sep 9, 2021
1 parent 8588437 commit 9666e8b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions BazelExtensions/xcode_configuration_provider.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ def _extract_generated_sources(target, ctx):
if CcInfo in target:
cc_info = target[CcInfo]
files.append(cc_info.compilation_context.headers)
elif hasattr(target, "objc"):
objc = target.objc
files.append(objc.header)
elif hasattr(target, "objc") and hasattr(target.objc, "header"):
files.append(target.objc.header)

if hasattr(target, "objc"):
objc = target.objc
Expand Down

0 comments on commit 9666e8b

Please sign in to comment.