Loading...
cache_builder/NewSharedCacheBuilder.cpp dyld-1162 dyld-1160.6
--- dyld/dyld-1162/cache_builder/NewSharedCacheBuilder.cpp
+++ dyld/dyld-1160.6/cache_builder/NewSharedCacheBuilder.cpp
@@ -957,16 +957,14 @@
 
 void SharedCacheBuilder::estimateIMPCaches()
 {
-    // Only LP64 is supported by the runtime
     if ( !this->config.layout.is64 )
         return;
 
     if ( this->config.layout.cacheSize.rawValue() > 0x100000000 )
         return;
 
-    // Only arm64* are is supported by the runtime
-    std::string_view archName = this->options.archs.name();
-    if ( archName != "arm64e" && archName != "arm64")
+    // Only iOS for now
+    if ( this->options.platform != dyld3::Platform::iOS )
         return;
 
     // Skip everything if the JSON file is empty