diff --git a/engine/src/flutter/sky/tools/create_embedder_framework.py b/engine/src/flutter/sky/tools/create_embedder_framework.py index 3570957852..bd55a5674a 100755 --- a/engine/src/flutter/sky/tools/create_embedder_framework.py +++ b/engine/src/flutter/sky/tools/create_embedder_framework.py @@ -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' ) diff --git a/engine/src/flutter/sky/tools/create_full_ios_framework.py b/engine/src/flutter/sky/tools/create_full_ios_framework.py index 3c1e0f979c..5858ddefb7 100644 --- a/engine/src/flutter/sky/tools/create_full_ios_framework.py +++ b/engine/src/flutter/sky/tools/create_full_ios_framework.py @@ -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' ) diff --git a/engine/src/flutter/sky/tools/create_ios_framework.py b/engine/src/flutter/sky/tools/create_ios_framework.py index f0815df23d..a95ec4131c 100755 --- a/engine/src/flutter/sky/tools/create_ios_framework.py +++ b/engine/src/flutter/sky/tools/create_ios_framework.py @@ -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' ) diff --git a/engine/src/flutter/sky/tools/create_macos_framework.py b/engine/src/flutter/sky/tools/create_macos_framework.py index bbe047fad0..c1382527ad 100755 --- a/engine/src/flutter/sky/tools/create_macos_framework.py +++ b/engine/src/flutter/sky/tools/create_macos_framework.py @@ -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' )