mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[fuchsia] build_fuchsia_artifacts.py use the tools from the proper (flutter/engine#34542)
directory
This commit is contained in:
parent
e162fed336
commit
abda444816
@ -48,8 +48,20 @@ def GetFuchsiaSDKPath():
|
||||
return os.path.join(_src_root_dir, 'fuchsia', 'sdk', host_os)
|
||||
|
||||
|
||||
def GetHostArchFromPlatform():
|
||||
host_arch = platform.machine()
|
||||
# platform.machine() returns AMD64 on 64-bit Windows.
|
||||
if host_arch in ['x86_64', 'AMD64']:
|
||||
return 'x64'
|
||||
elif host_arch == 'aarch64':
|
||||
return 'arm64'
|
||||
raise Exception('Unsupported host architecture: %s' % host_arch)
|
||||
|
||||
|
||||
def GetPMBinPath():
|
||||
return os.path.join(GetFuchsiaSDKPath(), 'tools', 'pm')
|
||||
return os.path.join(
|
||||
GetFuchsiaSDKPath(), 'tools', GetHostArchFromPlatform(), 'pm'
|
||||
)
|
||||
|
||||
|
||||
def RunExecutable(command):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user