Fixes for the Windows arm64 build (flutter/engine#33681)

* Fixes for the Windows arm64 build

* Update buildroot to 53abad0fa9c9e0285e80f9b0682316d5d39705be

* Update buildroot to f582982073b6f04b7a70bc284bac8fafa6c0a846
This commit is contained in:
Zachary Anderson
2022-05-31 08:06:47 -07:00
committed by GitHub
parent 2642e1ab69
commit 67d4e8ff38
3 changed files with 24 additions and 5 deletions

View File

@@ -6,21 +6,26 @@
"""Get the Git HEAD revision of a specified Git repository."""
import sys
import subprocess
import os
import argparse
def IsWindows():
os_id = sys.platform
return os_id.startswith('win32') or os_id.startswith('cygwin')
def GetRepositoryVersion(repository):
"Returns the Git HEAD for the supplied repository path as a string."
if not os.path.exists(repository):
raise IOError("path doesn't exist")
git = 'git'
if IsWindows():
git = 'git.bat'
version = subprocess.check_output([
'git',
git,
'-C',
repository,
'rev-parse',
@@ -29,6 +34,7 @@ def GetRepositoryVersion(repository):
return str(version.strip(), 'utf-8')
def main():
parser = argparse.ArgumentParser()
@@ -44,5 +50,6 @@ def main():
return 0
if __name__ == '__main__':
sys.exit(main())

View File

@@ -116,6 +116,8 @@ def can_use_prebuilt_dart(args):
prebuilt = 'linux-%s' % args.linux_cpu
elif args.target_os == 'mac' and args.mac_cpu in ['x64', 'arm64']:
prebuilt = 'macos-%s' % args.mac_cpu
elif args.target_os == 'win' and args.windows_cpu in ['x64', 'arm64']:
prebuilt = 'windows-%s' % args.windows_cpu
prebuilts_dir = None
if prebuilt != None: