Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5bd718a24ea05765aedc44753b3d2ab777bcb18b
      
https://github.com/WebKit/WebKit/commit/5bd718a24ea05765aedc44753b3d2ab777bcb18b
  Author: Elliott Williams <[email protected]>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M Source/JavaScriptCore/CMakeLists.txt
    M Source/WebGPU/WGSL/CMakeLists.txt
    R Source/WebKit/MoveDirectory.cmake
    M Source/WebKit/PlatformCocoa.cmake
    M Source/cmake/OptionsCocoa.cmake
    M Source/cmake/WebKitMacros.cmake
    M Tools/MiniBrowser/mac/CMakeLists.txt
    M Tools/PlatformCocoa.cmake
    M Tools/Scripts/webkitdirs.pm
    M Tools/TestWebKitAPI/PlatformCocoa.cmake

  Log Message:
  -----------
  [CMake] Add GENERATE_DSYM option to produce dSYM bundles
https://bugs.webkit.org/show_bug.cgi?id=323941
rdar://187181320

Reviewed by Dan Glastonbury.

Add logic to the standard family of WEBKIT_FRAMEWORK macros to run
dsymutil after linking. Teach `build-webkit --dsym` to enable the
option.

dSYM generation is only useful for standalone Mach-O binaries, so it is
skipped for static and object library targets. Some binaries we generate
are build artifacts (like the LLInt* executables) and set a SKIP_DSYM
target property to bypass the logic.

Clean up some one-off implementations of dSYM generation, which included
some seemingly unnecessary file operations. The bundles are generated
alongside their respective libraries, like Xcode, and do not need to be
moved out of the framework.

Under LTO, the linker synthesizes its object files in a temporary
directory and deletes them on exit. Build with -object_path_lto to write
them somewhere durable for dsymutil to back to.

* Source/JavaScriptCore/CMakeLists.txt:
* Source/WebGPU/WebGPU/CMakeLists.txt:
* Source/WebKit/PlatformCocoa.cmake:
* Source/cmake/OptionsCocoa.cmake:
* Source/cmake/WebKitMacros.cmake:
(_WEBKIT_ADD_DSYM):
* Tools/MiniBrowser/mac/CMakeLists.txt:
* Tools/PlatformCocoa.cmake:
* Tools/Scripts/webkitdirs.pm:
(generateBuildSystemFromCMakeProject):
* Tools/TestWebKitAPI/PlatformCocoa.cmake:

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



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

Reply via email to