Skip to content

Commit efcae11

Browse files
Do not bundle .abi.json files (#2513)
1 parent 01ea71d commit efcae11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apple/internal/framework_import_support.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ def _classify_file_imports(config_vars, import_files):
202202
if framework_relative_path.startswith("Headers/"):
203203
header_imports.append(file)
204204
continue
205+
if framework_relative_path.startswith("Modules/") and framework_relative_path.endswith(".abi.json"):
206+
# 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.
207+
# See: https://github.com/swiftlang/swift/blob/main/lib/DriverTool/swift_api_digester_main.cpp
208+
continue
205209

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

0 commit comments

Comments
 (0)