Skip to content

Commit

Permalink
Cherry-pick 272448.494@safari-7618-branch (0ebcda9). https://bugs.web…
Browse files Browse the repository at this point in the history
…kit.org/show_bug.cgi?id=268792

    Refine application of new JIT entitlement for build fix.
    https://bugs.webkit.org/show_bug.cgi?id=268792
    rdar://122352736

    Reviewed by Tim Horton.

    * Source/JavaScriptCore/Scripts/process-entitlements.sh:
    * Source/WebKit/Scripts/process-entitlements.sh:

    Canonical link: https://commits.webkit.org/272448.494@safari-7618-branch

Canonical link: https://commits.webkit.org/274313.48@webkitglib/2.44
  • Loading branch information
Mark Lam authored and aperezdc committed Mar 11, 2024
1 parent 8917627 commit e5cffbd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions Source/JavaScriptCore/Scripts/process-entitlements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ function maccatalyst_process_testapi_entitlements()

function ios_family_process_jsc_entitlements()
{
if [[ "${WK_PLATFORM_NAME}" != watchos ]]; then
if [[ "${PLATFORM_NAME}" != watchos ]]; then
plistbuddy Add :com.apple.private.verified-jit bool YES
if (( "${WK_PLATFORM_NAME}" == iphoneos && $(( ${SDK_VERSION_ACTUAL} )) >= 170400
|| "${WK_PLATFORM_NAME}" == appletvos && $(( ${SDK_VERSION_ACTUAL} )) >= 170400
|| "${WK_PLATFORM_NAME}" == xros && $(( ${SDK_VERSION_ACTUAL} )) >= 10100 ))
then
plistbuddy Add :com.apple.developer.cs.allow-jit bool YES
if [[ "${PLATFORM_NAME}" == iphoneos ]]; then
if (( $(( ${SDK_VERSION_ACTUAL} )) >= 170400 )); then
plistbuddy Add :com.apple.developer.cs.allow-jit bool YES
else
plistbuddy Add :dynamic-codesigning bool YES
fi
else
plistbuddy Add :dynamic-codesigning bool YES
fi
Expand Down
13 changes: 7 additions & 6 deletions Source/WebKit/Scripts/process-entitlements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,14 @@ fi

function ios_family_process_webcontent_entitlements()
{
if [[ "${WK_PLATFORM_NAME}" != watchos ]]; then
if [[ "${PLATFORM_NAME}" != watchos ]]; then
plistbuddy Add :com.apple.private.verified-jit bool YES
if (( "${WK_PLATFORM_NAME}" == iphoneos && $(( ${SDK_VERSION_ACTUAL} )) >= 170400
|| "${WK_PLATFORM_NAME}" == appletvos && $(( ${SDK_VERSION_ACTUAL} )) >= 170400
|| "${WK_PLATFORM_NAME}" == xros && $(( ${SDK_VERSION_ACTUAL} )) >= 10100 ))
then
plistbuddy Add :com.apple.developer.cs.allow-jit bool YES
if [[ "${PLATFORM_NAME}" == iphoneos ]]; then
if (( $(( ${SDK_VERSION_ACTUAL} )) >= 170400 )); then
plistbuddy Add :com.apple.developer.cs.allow-jit bool YES
else
plistbuddy Add :dynamic-codesigning bool YES
fi
else
plistbuddy Add :dynamic-codesigning bool YES
fi
Expand Down

0 comments on commit e5cffbd

Please sign in to comment.