Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6e9d9a44e3dbd920095dbed0096c23b482dae1d1
      
https://github.com/WebKit/WebKit/commit/6e9d9a44e3dbd920095dbed0096c23b482dae1d1
  Author: Elliott Williams <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

  Changed paths:
    M Source/WebCore/bindings/scripts/preprocessor.pm
    M Tools/Scripts/webkitpy/bindings/main.py

  Log Message:
  -----------
  [Build] Pass -target flag to preprocessor invocation in IDL parser
https://bugs.webkit.org/show_bug.cgi?id=306159
rdar://168798872

Reviewed by Ryosuke Niwa.

On Xcode-based builds, it's ambiguous which platform to use when
invoking clang as a preprocessor. All the necessary information is in
the environment, we just need to wire up the -target specifier.

This is important to ensure that <wtf/Platform.h> preprocessor guards
work correctly in IDLs, and to work around some errors seen when testing
the nightly toolchain.

* Source/WebCore/bindings/scripts/preprocessor.pm:
(applyPreprocessor):
* Tools/Scripts/webkitpy/bindings/main.py:
(BindingsTests):
(BindingsTests.generate_from_idl):
(BindingsTests.generate_supplemental_dependency):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to