Skip to content

Commit

Permalink
Do not bundle .abi.json files (#2510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vakhid Betrakhmadov committed Aug 21, 2024
1 parent 01ea71d commit 436f0d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apple/internal/framework_import_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ def _classify_file_imports(config_vars, import_files):
if framework_relative_path.startswith("Headers/"):
header_imports.append(file)
continue
if framework_relative_path.startswith("Modules/") and framework_relative_path.endswith(".abi.json"):
# Ignore abi.json files, as they don't matter in the build, and are most commonly used to detect source-breaking API changes during the evolution of a Swift library.
# See: https://github.com/swiftlang/swift/blob/main/lib/DriverTool/swift_api_digester_main.cpp
continue

# Unknown file type, sending to unknown (i.e. resources, Info.plist, etc.)
bundling_imports.append(file)
Expand Down

0 comments on commit 436f0d7

Please sign in to comment.