fix(native): retain re-exported Mach-O library dependencies (#516)

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Mizrahi Celekli
2026-10-05 14:59:48 +08:00
committed by GitHub
parent 385445804a
commit 4a5673e1dc
6 changed files with 202 additions and 1 deletions
+6 -1
View File
@@ -139,7 +139,12 @@ const collectDependency = (
fields: Readonly<Record<string, string | number | null>>,
state: ParsedLoadCommands,
): void => {
if (!kind.startsWith("LC_LOAD_") && kind !== "LC_ID_DYLIB") return;
if (
!kind.startsWith("LC_LOAD_") &&
kind !== "LC_ID_DYLIB" &&
kind !== "LC_REEXPORT_DYLIB"
)
return;
state.dependencies.push({
path: stripOffsetSuffix(stringField(fields, "name")),
kind,