Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions apple/internal/apple_framework_import.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,15 @@ def _swiftmodule_for_cpu(swiftmodule_files, cpu):
# ABC.framework/Modules/ABC.swiftmodule/<arch>.swiftmodule
# Where <arch> will be a common arch like x86_64, arm64, etc.
named_files = {f.basename: f for f in swiftmodule_files}
for extension in ("swiftinterface", "swiftmodule"):
module = named_files.get("{}.{}".format(cpu, extension))
if not module and cpu == "armv7":
module = named_files.get("arm.{}".format(extension))

module = named_files.get("{}.swiftmodule".format(cpu))
if not module and cpu == "armv7":
module = named_files.get("arm.swiftmodule")
if module:
return module

return module
return None

def _classify_framework_imports(framework_imports):
"""Classify a list of framework files into bundling, header, or module_map."""
Expand Down