Use the arm64 dsymutil on Mac M1 machines (flutter/engine#42533)

Use the right binary architectures on scripts running dsymutil.

This is to fix the problem of bad architecture binary for builds running on dart internal: https://github.com/flutter/flutter/issues/128098

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
godofredoc
2023-06-05 15:12:13 -07:00
committed by GitHub
parent 5af0dd3985
commit e421d5485a
4 changed files with 12 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
# found in the LICENSE file.
import argparse
import platform
import subprocess
import shutil
import sys
@@ -14,8 +15,9 @@ buildroot_dir = os.path.abspath(
os.path.join(os.path.realpath(__file__), '..', '..', '..', '..')
)
ARCH_SUBPATH = 'mac-arm64' if platform.processor() == 'arm' else 'mac-x64'
DSYMUTIL = os.path.join(
os.path.dirname(__file__), '..', '..', '..', 'buildtools', 'mac-x64',
os.path.dirname(__file__), '..', '..', '..', 'buildtools', ARCH_SUBPATH,
'clang', 'bin', 'dsymutil'
)

View File

@@ -9,14 +9,16 @@
import argparse
import os
import platform
import shutil
import subprocess
import sys
from create_xcframework import create_xcframework # pylint: disable=import-error
ARCH_SUBPATH = 'mac-arm64' if platform.processor() == 'arm' else 'mac-x64'
DSYMUTIL = os.path.join(
os.path.dirname(__file__), '..', '..', '..', 'buildtools', 'mac-x64',
os.path.dirname(__file__), '..', '..', '..', 'buildtools', ARCH_SUBPATH,
'clang', 'bin', 'dsymutil'
)

View File

@@ -5,6 +5,7 @@
# found in the LICENSE file.
import argparse
import platform
import subprocess
import shutil
import sys
@@ -12,8 +13,9 @@ import os
from create_xcframework import create_xcframework # pylint: disable=import-error
ARCH_SUBPATH = 'mac-arm64' if platform.processor() == 'arm' else 'mac-x64'
DSYMUTIL = os.path.join(
os.path.dirname(__file__), '..', '..', '..', 'buildtools', 'mac-x64',
os.path.dirname(__file__), '..', '..', '..', 'buildtools', ARCH_SUBPATH,
'clang', 'bin', 'dsymutil'
)

View File

@@ -5,6 +5,7 @@
# found in the LICENSE file.
import argparse
import platform
import subprocess
import shutil
import sys
@@ -14,8 +15,9 @@ buildroot_dir = os.path.abspath(
os.path.join(os.path.realpath(__file__), '..', '..', '..', '..')
)
ARCH_SUBPATH = 'mac-arm64' if platform.processor() == 'arm' else 'mac-x64'
DSYMUTIL = os.path.join(
os.path.dirname(__file__), '..', '..', '..', 'buildtools', 'mac-x64',
os.path.dirname(__file__), '..', '..', '..', 'buildtools', ARCH_SUBPATH,
'clang', 'bin', 'dsymutil'
)