Skip to content

Commit

Permalink
Cherry-pick d192a5a. rdar://115294369
Browse files Browse the repository at this point in the history
    Fix the visionOS build
    https://bugs.webkit.org/show_bug.cgi?id=261369
    rdar://115202809

    Reviewed by Tim Horton.

    * Source/WebKit/Configurations/WebKit.xcconfig:

    Use `-weak_framework` to link MRUIKit, since the framework is not present in all configurations.

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

Canonical link: https://commits.webkit.org/267815.5@safari-7617.1.8-branch
  • Loading branch information
pxlcoder authored and Dan Robson committed Sep 12, 2023
1 parent 6c1f0e7 commit dbdf398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebKit/Configurations/WebKit.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ WK_UIKIT_LDFLAGS_cocoatouch = -framework UIKit;
// it's impossible to tell the difference between visionOS and iOS with the latter.
// Don't copy this unless you also need to differentiate!
WK_MRUIKIT_LDFLAGS = $(WK_MRUIKIT_LDFLAGS_$(PLATFORM_NAME));
WK_MRUIKIT_LDFLAGS_xros = -framework MRUIKit;
WK_MRUIKIT_LDFLAGS_xrsimulator = -framework MRUIKit;
WK_MRUIKIT_LDFLAGS_xros = -weak_framework MRUIKit;
WK_MRUIKIT_LDFLAGS_xrsimulator = -weak_framework MRUIKit;

WK_UNIFORM_TYPE_IDENTIFIERS_LDFLAGS = $(WK_UNIFORM_TYPE_IDENTIFIERS_LDFLAGS_$(WK_PLATFORM_NAME));
WK_UNIFORM_TYPE_IDENTIFIERS_LDFLAGS_iphoneos = $(WK_UNIFORM_TYPE_IDENTIFIERS_LDFLAGS$(WK_IOS_14));
Expand Down

0 comments on commit dbdf398

Please sign in to comment.