⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264182 in webkit


Ignore:
Timestamp:
Jul 9, 2020, 11:29:59 AM (6 years ago)
Author:
timothy_horton@apple.com
Message:

Local internal builds fail on Apple Silicon (building yasm)
​https://bugs.webkit.org/show_bug.cgi?id=214129

Reviewed by Dan Bernstein.

  • Scripts/webkitdirs.pm:

(determineNativeArchitecture):
Build for arm64e when building with the internal SDK.
Importantly, this matches the ARCHS_STANDARD_* build settings, so this way we
won't set an ARCH that isn't in VALID_ARCHS for projects who use ARCHS_STANDARD_*.

(determineXcodeSDK):
Fall back to "macosx", so that other code can correctly identify that we're building for macOS.
This logic needs to be here, instead of in the caller (who could assume undefined means macOS),
because we want the ".internal" search to take place as well.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r264170 r264182  
     12020-07-09  Tim Horton  <timothy_horton@apple.com>
     2
     3        Local internal builds fail on Apple Silicon (building yasm)
     4        https://bugs.webkit.org/show_bug.cgi?id=214129
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * Scripts/webkitdirs.pm:
     9        (determineNativeArchitecture):
     10        Build for arm64e when building with the internal SDK.
     11        Importantly, this matches the ARCHS_STANDARD_* build settings, so this way we
     12        won't set an ARCH that isn't in VALID_ARCHS for projects who use ARCHS_STANDARD_*.
     13
     14        (determineXcodeSDK):
     15        Fall back to "macosx", so that other code can correctly identify that we're building for macOS.
     16        This logic needs to be here, instead of in the caller (who could assume undefined means macOS),
     17        because we want the ".internal" search to take place as well.
     18
    1192020-07-09  Wenson Hsieh  <wenson_hsieh@apple.com>
    220
  • trunk/Tools/Scripts/webkitdirs.pm

    r264142 r264182  
    372372        $output = "arm64";
    373373    }
     374
     375    if (isAppleCocoaWebKit() && $output eq "arm64") {
     376        determineXcodeSDK();
     377        if ($xcodeSDK eq "macosx.internal") {
     378            $output = "arm64e";
     379        }
     380    }
     381
    374382    $output = "arm" if $output eq "armv7l";
    375     die "'arm64e' is an invalid native architecture" if $output eq "arm64e";
    376383    $nativeArchitectureMap{"$target:$port"} = $output;
    377384}
    … …  
    633640        $xcodeSDK ||= "maccatalyst";
    634641    }
    635     return if !defined $xcodeSDK;
     642
     643    # Finally, fall back to macOS if no platform is specified.
     644    if (!defined $xcodeSDK) {
     645        $xcodeSDK = "macosx";
     646    }
    636647   
    637648    # Prefer the internal version of an sdk, if it exists.
Note: See TracChangeset for help on using the changeset viewer.