From f0ae164d76b7bb802bbdf8ef758cc5637fac0fa1 Mon Sep 17 00:00:00 2001 From: Leptos Date: Thu, 13 Jun 2024 19:57:29 -0700 Subject: [PATCH] Use the platform of the source Mach-O file unless ignore_platform --- src/macho_file_parse_load_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macho_file_parse_load_commands.c b/src/macho_file_parse_load_commands.c index 6ff973f..1fe6df3 100644 --- a/src/macho_file_parse_load_commands.c +++ b/src/macho_file_parse_load_commands.c @@ -387,7 +387,7 @@ handle_targets_platform_and_uuid( if (handle_uuid_result != E_MACHO_FILE_PARSE_OK) { return handle_uuid_result; } - } else if (arch != NULL) { + } else if (!tbd_options.ignore_platform) { if (platform == TBD_PLATFORM_NONE) { const bool should_continue = call_callback(callback,