[webkit-changes] [WebKit/WebKit] 6e4108: [Xcode] Change header postprocessing logic to bett...

Elliott Williams noreply at github.com
Wed Feb 15 20:32:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6e4108c84c0445fce64c1cccabd28635b62e90d6
      https://github.com/WebKit/WebKit/commit/6e4108c84c0445fce64c1cccabd28635b62e90d6
  Author: Elliott Williams <emw at apple.com>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M Source/WebKit/Configurations/WebKit.xcconfig

  Log Message:
  -----------
  [Xcode] Change header postprocessing logic to better reflect when it's needed internally
https://bugs.webkit.org/show_bug.cgi?id=251818
rdar://105031778

Reviewed by Alexey Proskuryakov.

WebKit currently assumes that API_AVAILABLE annotations will only use a
major OS version. We have to remember to bump this number annually, and
it prevents us from using minor versions in WebKit's API/SPI headers to
more accurately reflect availability.

Rather than make WebKit's internal configuration logic aware of all
software update versions (which is prohibitively difficult due to
xcconfig's limitations), introduce a new policy for when to enable
API_AVAILABLE annotations:

- Annotations are OFF in debug/release builds.
- Annotations are ON in production builds, unless the build has staged
  frameworks (i.e. it is a downlevel or STP build).

Internally, the production build environment may modify this policy by
overriding the WK_FRAMEWORK_HEADER_POSTPROCESSING_DISABLED setting.

* Source/WebKit/Configurations/WebKit.xcconfig:

Canonical link: https://commits.webkit.org/260346@main




More information about the webkit-changes mailing list