⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 277464 in webkit


Ignore:
Timestamp:
May 13, 2021, 4:27:20 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

Work around WebCore failing to build due to NDEBUG getting undefined in release
​https://bugs.webkit.org/show_bug.cgi?id=225782
<rdar://problem/77982432>

Reviewed by Simon Fraser.

Source/WebCore/PAL:

  • pal/spi/cg/CoreGraphicsSPI.h:
  • pal/spi/ios/GraphicsServicesSPI.h:

Apply a temporary workaround to preserve NDEBUG through these includes.
There are a few ways to get to CoreGraphicsPrivate.h, so we fix all of them.

Source/WebKit:

  • Platform/spi/ios/UIKitSPI.h:

Apply a temporary workaround to preserve NDEBUG through these includes.
There are a few ways to get to CoreGraphicsPrivate.h, so we fix all of them.

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/PAL/ChangeLog

    r277452 r277464  
     12021-05-13  Tim Horton  <timothy_horton@apple.com>
     2
     3        Work around WebCore failing to build due to NDEBUG getting undefined in release
     4        https://bugs.webkit.org/show_bug.cgi?id=225782
     5        <rdar://problem/77982432>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * pal/spi/cg/CoreGraphicsSPI.h:
     10        * pal/spi/ios/GraphicsServicesSPI.h:
     11        Apply a temporary workaround to preserve NDEBUG through these includes.
     12        There are a few ways to get to CoreGraphicsPrivate.h, so we fix all of them.
     13
    1142021-05-13  Aditya Keerthi  <akeerthi@apple.com>
    215
  • trunk/Source/WebCore/PAL/pal/spi/cg/CoreGraphicsSPI.h

    r269220 r277464  
    3939#if USE(APPLE_INTERNAL_SDK)
    4040
     41// FIXME (77983361): Remove this workaround when <rdar://problem/77977216> is fixed.
     42#if defined(NDEBUG) && NDEBUG
     43#define WK_NDEBUG 1
     44#endif
     45
    4146#include <CoreGraphics/CGContextDelegatePrivate.h>
    4247#include <CoreGraphics/CGFontCache.h>
    … …  
    4449#include <CoreGraphics/CoreGraphicsPrivate.h>
    4550#include <CoreGraphics/CGStylePrivate.h>
     51
     52#if defined(WK_NDEBUG) && !defined(NDEBUG)
     53#define NDEBUG 1
     54#undef WK_NDEBUG
     55#endif
    4656
    4757#if PLATFORM(MAC)
  • trunk/Source/WebCore/PAL/pal/spi/ios/GraphicsServicesSPI.h

    r264907 r277464  
    3232#if USE(APPLE_INTERNAL_SDK)
    3333
     34// FIXME (77983361): Remove this workaround when <rdar://problem/77977216> is fixed.
     35#if defined(NDEBUG) && NDEBUG
     36#define WK_NDEBUG 1
     37#endif
     38
    3439#import <GraphicsServices/GraphicsServices.h>
     40
     41#if defined(WK_NDEBUG) && !defined(NDEBUG)
     42#define NDEBUG 1
     43#undef WK_NDEBUG
     44#endif
    3545
    3646#endif
  • trunk/Source/WebKit/ChangeLog

    r277453 r277464  
     12021-05-13  Tim Horton  <timothy_horton@apple.com>
     2
     3        Work around WebCore failing to build due to NDEBUG getting undefined in release
     4        https://bugs.webkit.org/show_bug.cgi?id=225782
     5        <rdar://problem/77982432>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * Platform/spi/ios/UIKitSPI.h:
     10        Apply a temporary workaround to preserve NDEBUG through these includes.
     11        There are a few ways to get to CoreGraphicsPrivate.h, so we fix all of them.
     12
    1132021-05-13  Megan Gardner  <megan_gardner@apple.com>
    214
  • trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h

    r276523 r277464  
    2727
    2828#if USE(APPLE_INTERNAL_SDK)
     29
     30// FIXME (77983361): Remove this workaround when <rdar://problem/77977216> is fixed.
     31#if defined(NDEBUG) && NDEBUG
     32#define WK_NDEBUG 1
     33#endif
    2934
    3035#import <UIKit/NSTextAlternatives.h>
    … …  
    136141#endif
    137142
     143#if defined(WK_NDEBUG) && !defined(NDEBUG)
     144#define NDEBUG 1
     145#undef WK_NDEBUG
     146#endif
     147
    138148#else // USE(APPLE_INTERNAL_SDK)
    139149
Note: See TracChangeset for help on using the changeset viewer.