da7d2a43
Levin Li
committed
failed
3 changed files
angle.apple.patch
/angle.apple.patch-77+1
/angle.apple.patch
Add comment 1 diff --git a/BUILD.gn b/BUILD.gn
Add comment 2 Minus  index 4cd1b6928..8c57319ff 100644
Add comment 2 Plus  index a82081b22..3399e0d31 100644
Add comment 3 --- a/BUILD.gn
Add comment 4 +++ b/BUILD.gn
Add comment 5 @@ -694,6 +694,7 @@ angle_static_library("angle_gpu_info_util") {
Add comment 69 // On iOS, shared libraries must be loaded from within the app bundle.
Add comment 70 directory = GetExecutableDirectory() + "/Frameworks/";
Add comment 71 #elif ANGLE_PLATFORM_FUCHSIA
Add comment 72 Minus  diff --git a/src/gpu_info_util/SystemInfo_macos.mm b/src/gpu_info_util/SystemInfo_macos.mm
Add comment 73 Minus  index ca3d88092..063a96cb7 100644
Add comment 74 Minus  --- a/src/gpu_info_util/SystemInfo_macos.mm
Add comment 75 Minus  +++ b/src/gpu_info_util/SystemInfo_macos.mm
Add comment 76 Minus  @@ -18,10 +18,22 @@
Add comment 77 Minus   # include "common/gl/cgl/FunctionsCGL.h"
Add comment 78 Minus   #endif
Add comment 79 Minus  
Add comment 80 Minus  -#if !defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000
Add comment 81 Minus  -# define HAVE_MAIN_PORT_DEFAULT 1
Add comment 82 Minus  +#if defined(ANGLE_PLATFORM_MACOS)
Add comment 83 Minus  +
Add comment 84 Minus  +# if !defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000
Add comment 85 Minus  +# define HAVE_MAIN_PORT_DEFAULT 1
Add comment 86 Minus  +# else
Add comment 87 Minus  +# define HAVE_MAIN_PORT_DEFAULT 0
Add comment 88 Minus  +# endif
Add comment 89 Minus  +
Add comment 90 Minus   #else
Add comment 91 Minus  -# define HAVE_MAIN_PORT_DEFAULT 0
Add comment 92 Minus  +
Add comment 93 Minus  +# if !defined(__IPHONE_OS_VERSION_MIN_REQUIRED) || __IPHONE_OS_VERSION_MIN_REQUIRED >= 150000
Add comment 94 Minus  +# define HAVE_MAIN_PORT_DEFAULT 1
Add comment 95 Minus  +# else
Add comment 96 Minus  +# define HAVE_MAIN_PORT_DEFAULT 0
Add comment 97 Minus  +# endif
Add comment 98 Minus  +
Add comment 99 Minus   #endif
Add comment 100 Minus  
Add comment 101 Minus   namespace angle
Add comment 102 Minus  @@ -216,7 +228,7 @@ uint64_t GetGpuIDFromDisplayID(uint32_t displayID)
Add comment 103 Minus   {
Add comment 104 Minus   // First attempt to use query the registryID from a Metal device before falling back to CGL.
Add comment 105 Minus   // This avoids loading the OpenGL framework when possible.
Add comment 106 Minus  - if (@available(macOS 10.13, *))
Add comment 107 Minus  + if (@available(macOS 10.13, macCatalyst 13.0, *))
Add comment 108 Minus   {
Add comment 109 Minus   id<MTLDevice> device = CGDirectDisplayCopyCurrentMetalDevice(displayID);
Add comment 110 Minus   if (device)
Add comment 111 Minus  @@ -239,7 +251,7 @@ uint64_t GetGpuIDFromDisplayID(uint32_t displayID)
Add comment 112 Minus   // Used with permission.
Add comment 113 Minus   uint64_t GetGpuIDFromOpenGLDisplayMask(uint32_t displayMask)
Add comment 114 Minus   {
Add comment 115 Minus  - if (@available(macOS 10.13, *))
Add comment 116 Minus  + if (@available(macOS 10.13, macCatalyst 13.0, *))
Add comment 117 Minus   {
Add comment 118 Minus   constexpr CGLRendererProperty kCGLRPRegistryIDLow = static_cast<CGLRendererProperty>(140);
Add comment 119 Minus   constexpr CGLRendererProperty kCGLRPRegistryIDHigh = static_cast<CGLRendererProperty>(141);
Add comment 120 Minus  @@ -290,7 +302,7 @@ VendorID GetVendorIDFromMetalDeviceRegistryID(uint64_t registryID)
Add comment 121 Minus   {
Add comment 122 Minus   #if defined(ANGLE_PLATFORM_MACOS)
Add comment 123 Minus   // On macOS, the following code is only supported since 10.13.
Add comment 124 Minus  - if (@available(macOS 10.13, *))
Add comment 125 Minus  + if (@available(macOS 10.13, macCatalyst 13.0, *))
Add comment 126 Minus   #endif
Add comment 127 Minus   {
Add comment 128 Minus   // Get a matching dictionary for the IOGraphicsAccelerator2
Add comment 129 Minus  @@ -338,7 +350,9 @@ VendorID GetVendorIDFromMetalDeviceRegistryID(uint64_t registryID)
Add comment 130 Minus  
Add comment 131 Minus   return vendorId;
Add comment 132 Minus   }
Add comment 133 Minus  +#if defined(ANGLE_PLATFORM_MACOS)
Add comment 134 Minus   return 0;
Add comment 135 Minus  +#endif
Add comment 136 Minus   }
Add comment 137 Minus  
Add comment 138 Minus   bool GetSystemInfo_mac(SystemInfo *info)
Add comment 139 Minus  @@ -366,7 +380,7 @@ bool GetSystemInfo_mac(SystemInfo *info)
Add comment 140 Minus  
Add comment 141 Minus   // Then override the activeGPUIndex field of info to reflect the current
Add comment 142 Minus   // GPU instead of the non-intel GPU
Add comment 143 Minus  - if (@available(macOS 10.13, *))
Add comment 144 Minus  + if (@available(macOS 10.13, macCatalyst 13.0, *))
Add comment 145 Minus   {
Add comment 146 Minus   ForceGPUSwitchIndex(info);
Add comment 147 Minus   }
Add comment 148 72 diff --git a/src/libGLESv2.gni b/src/libGLESv2.gni
Add comment 149 73 index 41bd81aa1..b6b36ccb4 100644
Add comment 150 74 --- a/src/libGLESv2.gni
angle.visionos.patch
/angle.visionos.patch-195
/angle.visionos.patch
Add comment 12 (defined(__has_include) && __has_include(<Metal/MTLResource_Private.h>))
Add comment 13 # define ANGLE_HAVE_MTLRESOURCE_SET_OWNERSHIP_IDENTITY 1
Add comment 14 #else
Add comment 15 Minus  diff --git a/src/common/apple_platform_utils.h b/src/common/apple_platform_utils.h
Add comment 16 Minus  index 6e9bf32e8..0d2d99eec 100644
Add comment 17 Minus  --- a/src/common/apple_platform_utils.h
Add comment 18 Minus  +++ b/src/common/apple_platform_utils.h
Add comment 19 Minus  @@ -20,30 +20,30 @@
Add comment 20 Minus   #if TARGET_OS_MACCATALYST
Add comment 21 Minus   // ANGLE_APPLE_AVAILABLE_XCI: check if either of the 3 platforms (OSX/Catalyst/iOS) min verions is
Add comment 22 Minus   // available:
Add comment 23 Minus  -# define ANGLE_APPLE_AVAILABLE_XCI(macVer, macCatalystVer, iOSVer) \
Add comment 24 Minus  - @available(macOS macVer, macCatalyst macCatalystVer, iOS iOSVer, *)
Add comment 25 Minus  +# define ANGLE_APPLE_AVAILABLE_XCI(macVer, macCatalystVer, iOSVer, visionOSVer) \
Add comment 26 Minus  + @available(macOS macVer, macCatalyst macCatalystVer, iOS iOSVer, visionOS visionOSVer, *)
Add comment 27 Minus   // ANGLE_APPLE_AVAILABLE_XC: check if either of the 2 platforms (OSX/Catalyst) min verions is
Add comment 28 Minus   // available:
Add comment 29 Minus   # define ANGLE_APPLE_AVAILABLE_XC(macVer, macCatalystVer) \
Add comment 30 Minus   @available(macOS macVer, macCatalyst macCatalystVer, *)
Add comment 31 Minus   // ANGLE_APPLE_AVAILABLE_CI: check if either of the 2 platforms (Catalyst/iOS) min verions is
Add comment 32 Minus   // available:
Add comment 33 Minus  -# define ANGLE_APPLE_AVAILABLE_CI(macCatalystVer, iOSVer) \
Add comment 34 Minus  - @available(macCatalyst macCatalystVer, iOS iOSVer, *)
Add comment 35 Minus  +# define ANGLE_APPLE_AVAILABLE_CI(macCatalystVer, iOSVer, visionOSVer) \
Add comment 36 Minus  + @available(macCatalyst macCatalystVer, iOS iOSVer, visionOS visionOSVer, *)
Add comment 37 Minus   #else
Add comment 38 Minus  -# define ANGLE_APPLE_AVAILABLE_XCI(macVer, macCatalystVer, iOSVer) \
Add comment 39 Minus  - ANGLE_APPLE_AVAILABLE_XI(macVer, iOSVer)
Add comment 40 Minus  +# define ANGLE_APPLE_AVAILABLE_XCI(macVer, macCatalystVer, iOSVer, visionOSVer) \
Add comment 41 Minus  + ANGLE_APPLE_AVAILABLE_XI(macVer, iOSVer, visionOSVer)
Add comment 42 Minus  
Add comment 43 Minus   # define ANGLE_APPLE_AVAILABLE_XC(macVer, macCatalystVer) @available(macOS macVer, *)
Add comment 44 Minus  -# define ANGLE_APPLE_AVAILABLE_CI(macCatalystVer, iOSVer) @available(iOS iOSVer, tvOS iOSVer, *)
Add comment 45 Minus  +# define ANGLE_APPLE_AVAILABLE_CI(macCatalystVer, iOSVer, visionOSVer) @available(iOS iOSVer, tvOS iOSVer, visionOS visionOSVer, *)
Add comment 46 Minus   #endif
Add comment 47 Minus  
Add comment 48 Minus   // ANGLE_APPLE_AVAILABLE_XI: check if either of the 2 platforms (OSX/iOS) min verions is available:
Add comment 49 Minus  -#define ANGLE_APPLE_AVAILABLE_XI(macVer, iOSVer) \
Add comment 50 Minus  - @available(macOS macVer, iOS iOSVer, tvOS iOSVer, *)
Add comment 51 Minus  +#define ANGLE_APPLE_AVAILABLE_XI(macVer, iOSVer, visionOSVer) \
Add comment 52 Minus  + @available(macOS macVer, iOS iOSVer, tvOS iOSVer, visionOS visionOSVer, *)
Add comment 53 Minus  
Add comment 54 Minus   // ANGLE_APPLE_AVAILABLE_I: check if a particular iOS version is available
Add comment 55 Minus  -#define ANGLE_APPLE_AVAILABLE_I(iOSVer) @available(iOS iOSVer, tvOS iOSVer, *)
Add comment 56 Minus  +#define ANGLE_APPLE_AVAILABLE_I(iOSVer, visionOSVer) @available(iOS iOSVer, tvOS iOSVer, visionOS visionOSVer, *)
Add comment 57 Minus  
Add comment 58 Minus   #if TARGET_OS_IPHONE
Add comment 59 Minus   # if !defined(__IPHONE_11_0)
Add comment 60 15 diff --git a/src/common/platform.h b/src/common/platform.h
Add comment 61 16 index 16eb8ddcd..610c9eeda 100644
Add comment 62 17 --- a/src/common/platform.h
Add comment 70 25 # endif
Add comment 71 26 # endif
Add comment 72 27 #endif
Add comment 73 Minus  diff --git a/src/libANGLE/renderer/metal/ContextMtl.mm b/src/libANGLE/renderer/metal/ContextMtl.mm
Add comment 74 Minus  index af75302bf..48ec1d9dd 100644
Add comment 75 Minus  --- a/src/libANGLE/renderer/metal/ContextMtl.mm
Add comment 76 Minus  +++ b/src/libANGLE/renderer/metal/ContextMtl.mm
Add comment 77 Minus  @@ -221,7 +221,7 @@ ContextMtl::ContextMtl(const gl::State &state,
Add comment 78 Minus   mProvokingVertexHelper(this),
Add comment 79 Minus   mContextDevice(GetOwnershipIdentity(attribs))
Add comment 80 Minus   {
Add comment 81 Minus  - if (@available(iOS 12.0, macOS 10.14, *))
Add comment 82 Minus  + if (@available(iOS 12.0, macOS 10.14, visionOS 1.0, *))
Add comment 83 Minus   {
Add comment 84 Minus   mHasMetalSharedEvents = true;
Add comment 85 Minus   }
Add comment 86 Minus  diff --git a/src/libANGLE/renderer/metal/DisplayMtl.mm b/src/libANGLE/renderer/metal/DisplayMtl.mm
Add comment 87 Minus  index b9568e0dd..21f7ea184 100644
Add comment 88 Minus  --- a/src/libANGLE/renderer/metal/DisplayMtl.mm
Add comment 89 Minus  +++ b/src/libANGLE/renderer/metal/DisplayMtl.mm
Add comment 90 Minus  @@ -757,7 +757,7 @@ void DisplayMtl::ensureCapsInitialized() const
Add comment 91 Minus   // for now. http://anglebug.com/42263403
Add comment 92 Minus  
Add comment 93 Minus   // NOTE(kpiddington): This seems to be fixed in macOS Monterey
Add comment 94 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(12.0, 15.0, 15.0))
Add comment 95 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(12.0, 15.0, 15.0, 1.0))
Add comment 96 Minus   {
Add comment 97 Minus   mNativeCaps.maxAliasedPointSize = 511;
Add comment 98 Minus   }
Add comment 99 Minus  @@ -916,7 +916,7 @@ void DisplayMtl::ensureCapsInitialized() const
Add comment 100 Minus   mNativeLimitations.squarePvrtc1 = true;
Add comment 101 Minus  
Add comment 102 Minus   // Older Metal does not support compressed formats for TEXTURE_3D target.
Add comment 103 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13.0))
Add comment 104 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13.0, 1.0))
Add comment 105 Minus   {
Add comment 106 Minus   mNativeLimitations.noCompressedTexture3D = !supportsEitherGPUFamily(3, 1);
Add comment 107 Minus   }
Add comment 108 Minus  @@ -953,7 +953,7 @@ void DisplayMtl::initializeExtensions() const
Add comment 109 Minus   mNativeExtensions.copyCompressedTextureCHROMIUM = false;
Add comment 110 Minus   mNativeExtensions.textureMirrorClampToEdgeEXT = true;
Add comment 111 Minus  
Add comment 112 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.11, 13.1, 11.0))
Add comment 113 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.11, 13.1, 11.0, 1.0))
Add comment 114 Minus   {
Add comment 115 Minus   mNativeExtensions.depthClampEXT = true;
Add comment 116 Minus   }
Add comment 117 Minus  @@ -1017,7 +1017,7 @@ void DisplayMtl::initializeExtensions() const
Add comment 118 Minus  
Add comment 119 Minus   mNativeExtensions.sampleVariablesOES = true;
Add comment 120 Minus  
Add comment 121 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(11.0, 14.0, 14.0))
Add comment 122 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(11.0, 14.0, 14.0, 1.0))
Add comment 123 Minus   {
Add comment 124 Minus   mNativeExtensions.shaderMultisampleInterpolationOES =
Add comment 125 Minus   [mMetalDevice supportsPullModelInterpolation];
Add comment 126 Minus  @@ -1090,7 +1090,7 @@ void DisplayMtl::initializeExtensions() const
Add comment 127 Minus   mNativeExtensions.provokingVertexANGLE = true;
Add comment 128 Minus  
Add comment 129 Minus   // GL_EXT_blend_func_extended
Add comment 130 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.12, 13.1, 11.0))
Add comment 131 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.12, 13.1, 11.0, 1.0))
Add comment 132 Minus   {
Add comment 133 Minus   mNativeExtensions.blendFuncExtendedEXT = true;
Add comment 134 Minus   mNativeCaps.maxDualSourceDrawBuffers = 1;
Add comment 135 Minus  @@ -1391,7 +1391,7 @@ bool DisplayMtl::supportsEitherGPUFamily(uint8_t iOSFamily, uint8_t macFamily) c
Add comment 136 Minus  
Add comment 137 Minus   bool DisplayMtl::supportsMetal2_1() const
Add comment 138 Minus   {
Add comment 139 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.14, 13.1, 12.0))
Add comment 140 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.14, 13.1, 12.0, 1.0))
Add comment 141 Minus   {
Add comment 142 Minus   return true;
Add comment 143 Minus   }
Add comment 144 Minus  @@ -1402,7 +1402,7 @@ bool DisplayMtl::supportsMetal2_1() const
Add comment 145 Minus   }
Add comment 146 Minus   bool DisplayMtl::supportsMetal2_2() const
Add comment 147 Minus   {
Add comment 148 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13.0))
Add comment 149 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13.0, 1.0))
Add comment 150 Minus   {
Add comment 151 Minus   return true;
Add comment 152 Minus   }
Add comment 153 Minus  diff --git a/src/libANGLE/renderer/metal/FrameBufferMtl.mm b/src/libANGLE/renderer/metal/FrameBufferMtl.mm
Add comment 154 Minus  index fc6479543..32b230606 100644
Add comment 155 Minus  --- a/src/libANGLE/renderer/metal/FrameBufferMtl.mm
Add comment 156 Minus  +++ b/src/libANGLE/renderer/metal/FrameBufferMtl.mm
Add comment 157 Minus  @@ -688,7 +688,7 @@ gl::FramebufferStatus FramebufferMtl::checkStatus(const gl::Context *context) co
Add comment 158 Minus  
Add comment 159 Minus   gl::FramebufferStatus FramebufferMtl::checkPackedDepthStencilAttachment() const
Add comment 160 Minus   {
Add comment 161 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.14, 13.1, 12.0))
Add comment 162 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.14, 13.1, 12.0, 1.0))
Add comment 163 Minus   {
Add comment 164 Minus   // If depth/stencil attachment has depth & stencil bits, then depth & stencil must not have
Add comment 165 Minus   // separate attachment. i.e. They must be the same texture or one of them has no
Add comment 166 Minus  diff --git a/src/libANGLE/renderer/metal/mtl_context_device.mm b/src/libANGLE/renderer/metal/mtl_context_device.mm
Add comment 167 Minus  index 9916d17fd..557d9d31c 100644
Add comment 168 Minus  --- a/src/libANGLE/renderer/metal/mtl_context_device.mm
Add comment 169 Minus  +++ b/src/libANGLE/renderer/metal/mtl_context_device.mm
Add comment 170 Minus  @@ -131,7 +131,7 @@ void ContextDevice::setOwnerWithIdentity(id<MTLResource> resource) const
Add comment 171 Minus  
Add comment 172 Minus   bool ContextDevice::hasUnifiedMemory() const
Add comment 173 Minus   {
Add comment 174 Minus  - if (@available(iOS 13.0, macOS 10.15, macCatalyst 13.1, tvOS 13.0, *))
Add comment 175 Minus  + if (@available(iOS 13.0, macOS 10.15, macCatalyst 13.1, tvOS 13.0, visionOS 1.0, *))
Add comment 176 Minus   {
Add comment 177 Minus   return [get() hasUnifiedMemory];
Add comment 178 Minus   }
Add comment 179 Minus  diff --git a/src/libANGLE/renderer/metal/mtl_utils.mm b/src/libANGLE/renderer/metal/mtl_utils.mm
Add comment 180 Minus  index 2265bb0be..64d4382d0 100644
Add comment 181 Minus  --- a/src/libANGLE/renderer/metal/mtl_utils.mm
Add comment 182 Minus  +++ b/src/libANGLE/renderer/metal/mtl_utils.mm
Add comment 183 Minus  @@ -189,7 +189,7 @@ void StartFrameCapture(id<MTLDevice> metalDevice, id<MTLCommandQueue> metalCmdQu
Add comment 184 Minus   }
Add comment 185 Minus  
Add comment 186 Minus   # ifdef __MAC_10_15
Add comment 187 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13))
Add comment 188 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13, 1.0))
Add comment 189 Minus   {
Add comment 190 Minus   auto captureDescriptor = mtl::adoptObjCObj([[MTLCaptureDescriptor alloc] init]);
Add comment 191 Minus   captureDescriptor.get().captureObject = metalDevice;
Add comment 192 Minus  @@ -222,7 +222,7 @@ void StartFrameCapture(id<MTLDevice> metalDevice, id<MTLCommandQueue> metalCmdQu
Add comment 193 Minus   }
Add comment 194 Minus   else
Add comment 195 Minus   # endif // __MAC_10_15
Add comment 196 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13))
Add comment 197 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13, 1.0))
Add comment 198 Minus   {
Add comment 199 Minus   auto captureDescriptor = mtl::adoptObjCObj([[MTLCaptureDescriptor alloc] init]);
Add comment 200 Minus   captureDescriptor.get().captureObject = metalDevice;
Add comment 201 Minus  diff --git a/src/tests/test_utils/angle_test_instantiate_apple.mm b/src/tests/test_utils/angle_test_instantiate_apple.mm
Add comment 202 Minus  index 4fa6ff2cf..738b4abbc 100644
Add comment 203 Minus  --- a/src/tests/test_utils/angle_test_instantiate_apple.mm
Add comment 204 Minus  +++ b/src/tests/test_utils/angle_test_instantiate_apple.mm
Add comment 205 Minus  @@ -18,7 +18,7 @@ bool IsMetalTextureSwizzleAvailable()
Add comment 206 Minus   {
Add comment 207 Minus   // NOTE(hqle): This might not be accurate, since the capabilities also depend on underlying
Add comment 208 Minus   // hardwares, however, it is OK for testing.
Add comment 209 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13))
Add comment 210 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13, 1.0))
Add comment 211 Minus   {
Add comment 212 Minus   // All NVIDIA and older Intel don't support swizzle because they are GPU family 1.
Add comment 213 Minus   // We don't have a way to detect Metal family here, so skip all Intel for now.
Add comment 214 Minus  @@ -29,7 +29,7 @@ bool IsMetalTextureSwizzleAvailable()
Add comment 215 Minus  
Add comment 216 Minus   bool IsMetalCompressedTexture3DAvailable()
Add comment 217 Minus   {
Add comment 218 Minus  - if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13.0))
Add comment 219 Minus  + if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.1, 13.0, 1.0))
Add comment 220 Minus   {
Add comment 221 Minus   return true;
Add comment 222 Minus   }
Add comment 223 28
chromium.build.apple.patch
/chromium.build.apple.patch-5+5
/chromium.build.apple.patch
Add comment 1 diff --git a/config/compiler/BUILD.gn b/config/compiler/BUILD.gn
Add comment 2 Minus  index 889cf7462..91cb0d14e 100644
Add comment 2 Plus  index 7c3ed830e..e7d6ef5c6 100644
Add comment 3 --- a/config/compiler/BUILD.gn
Add comment 4 +++ b/config/compiler/BUILD.gn
Add comment 5 @@ -1954,28 +1954,12 @@ config("default_warnings") {
Add comment 31 }
Add comment 32
Add comment 33 # Some builders, such as Cronet, use a different version of Clang than
Add comment 34 Minus  @@ -2895,7 +2879,7 @@ config("symbols") {
Add comment 34 Plus  @@ -2899,7 +2883,7 @@ config("symbols") {
Add comment 35 configs += [ "//build/config:compress_debug_sections" ]
Add comment 36 }
Add comment 37
Add comment 38 Minus  - if (is_clang && !is_nacl && !is_chromeos) {
Add comment 39 Minus  + if (is_clang && !is_nacl && !is_chromeos && !is_apple) {
Add comment 38 Plus  - if (is_clang && !is_nacl && is_win && !is_component_build) {
Add comment 39 Plus  + if (is_clang && !is_nacl && is_win && !is_component_build && is_apple) {
Add comment 40 # Remove unreferenced methods to reduce type info in symbols.
Add comment 41 # See: https://github.com/llvm/llvm-project/pull/87018.
Add comment 42 Minus   cflags += [ "-gomit-unreferenced-methods" ]
Add comment 42 Plus   # The downside with this flag is precisely that: Unreferenced methods get
Add comment 43 diff --git a/config/ios/BUILD.gn b/config/ios/BUILD.gn
Add comment 44 index 295f36de0..9dfb220d1 100644
Add comment 45 --- a/config/ios/BUILD.gn