Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ecf6e18b1144f31f080845dc5951a72f2f7def72
      
https://github.com/WebKit/WebKit/commit/ecf6e18b1144f31f080845dc5951a72f2f7def72
  Author: Keith Miller <[email protected]>
  Date:   2026-10-14 (Wed, 14 Oct 2026)

  Changed paths:
    M Source/JavaScriptCore/shell/PlatformCocoa.cmake
    M Source/WebKit/PlatformCocoa.cmake
    M Source/cmake/WebKitMacros.cmake

  Log Message:
  -----------
  [CMake] Bake DYLD_FRAMEWORK_PATH into Cocoa executables in dev presets
https://bugs.webkit.org/show_bug.cgi?id=327488
rdar://189973646

Reviewed by Elliott Williams, Zak Ridouh, and Justin Michaud.

In DEVELOPER_MODE, WEBKIT_EXECUTABLE now links each executable that sits next 
to the built frameworks with -dyld_env DYLD_FRAMEWORK_PATH
and DYLD_LIBRARY_PATH, relative to @executable_path. jsc, testapi, 
WebKitTestRunner, TestWebKitAPI and the other tools then load the
frameworks from the build directory instead of the shared cache, without anyone 
explicitly setting DYLD_FRAMEWORK_PATH. A
DYLD_FRAMEWORK_PATH set in the env is still searched before the one baked into 
the binary. webpushd's hand-written flags are removed
because the shared code now covers them, and the path now also reaches 
adattributiond, webpushtool and every other Apple SDK, not just
macOS.

Since the -dyld_env DYLD_FRAMEWORK_PATH supports multiple search paths this 
patch adds a few:

Executable: Tools in the build root: jsc's sibling JSC tools (testapi, 
testmasm, testb3, testair, testdfg, testRegExp…), TestWTF,
TestWebKitAPI, TestIPC, TestWGSL, WebKitTestRunner, DumpRenderTree, ImageDiff, 
MallocBench, wgslc, lldbWebKitTester, and the webpushd,
adattributiond and webpushtool daemons (24 total)
Search path: @executable_path/
────────────────────────────────────────
Executable: jsc
Search path: @executable_path/:@executable_path/../../../../. The first entry 
is for the build root; the second is for
JavaScriptCore.framework/Versions/A/Helpers/jsc.
────────────────────────────────────────
Executable: App bundles (SwiftBrowser on macOS)
Search path: @executable_path/../../../, back out of 
SwiftBrowser.app/Contents/MacOS

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



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

Reply via email to