Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cf72c5b0d39576cb62b5744a0f2fbbdd2980d060
      
https://github.com/WebKit/WebKit/commit/cf72c5b0d39576cb62b5744a0f2fbbdd2980d060
  Author: Elliott Williams <[email protected]>
  Date:   2026-04-23 (Thu, 23 Apr 2026)

  Changed paths:
    M Source/JavaScriptCore/Configurations/libJavaScriptCore.xcconfig
    M Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
    A Source/JavaScriptCore/Scripts/copy-profiling-data.py
    R Source/JavaScriptCore/Scripts/copy-profiling-data.sh
    M Source/WebCore/Configurations/WebCore.xcconfig
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebKit/Configurations/BaseTarget.xcconfig
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  [Xcode] Use different PGO profiles for each architecture
https://bugs.webkit.org/show_bug.cgi?id=312619
rdar://172932216

Reviewed by Alexey Proskuryakov.

Relanding with a env var lookup fix in `copy-profiling-data.py`.

Internal infrastructure now generates per-architecture PGO profiles at
paths like:

    
./usr/local/include/WebKitAdditions/Profiling/arm64e/JavaScriptCore.profdata.compressed
    
./usr/local/include/WebKitAdditions/Profiling/x86_64/JavaScriptCore.profdata.compressed

and so on. Update the build system logic that decompresses these
profiles to take active architecture(s) into account.

The architecture-specific profiles will be decompressed to paths like:

    WebKitBuild/Release/DerivedSources/JavaScriptCore/Profiling/arm64e.profdata
    WebKitBuild/Release/DerivedSources/JavaScriptCore/Profiling/x86_64.profdata

Change the xcconfig logic that computes -fprofile-instr-use flags to
reflect the new input paths.

* Source/JavaScriptCore/Configurations/libJavaScriptCore.xcconfig:
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/Scripts/copy-profiling-data.py: Added, rewrite
  of the shell script.
(checked_decompress):
* Source/JavaScriptCore/Scripts/copy-profiling-data.sh:
* Source/WebCore/Configurations/WebCore.xcconfig:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebKit/Configurations/BaseTarget.xcconfig:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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



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

Reply via email to