diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp index bc4017b86f072..cbcac7b464e61 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -2596,8 +2596,7 @@ size_t ObjectFileMachO::ParseSymtab() { typedef std::set IndirectSymbols; IndirectSymbols indirect_symbol_names; -#if defined(__APPLE__) && \ - (defined(__arm__) || defined(__arm64__) || defined(__aarch64__)) +#if defined(__APPLE__) && TARGET_OS_EMBEDDED // Some recent builds of the dyld_shared_cache (hereafter: DSC) have been // optimized by moving LOCAL symbols out of the memory mapped portion of