From e1bbc58c25d78c488bf4c378f73833ec1058b893 Mon Sep 17 00:00:00 2001 From: Eric Miotto <1094986+edymtt@users.noreply.github.com> Date: Thu, 1 Sep 2022 05:33:49 -0700 Subject: [PATCH] Allow bootstrap to work when building a toolchain on Apple Silicon Addresses rdar://99040114 --- Utilities/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/bootstrap b/Utilities/bootstrap index c628205e0e7..4e4898c5cd6 100755 --- a/Utilities/bootstrap +++ b/Utilities/bootstrap @@ -213,7 +213,7 @@ def parse_build_args(args): args.cmake_path = get_cmake_path(args) args.ninja_path = get_ninja_path(args) if args.cross_compile_hosts: - if "macosx-arm64" in args.cross_compile_hosts: + if re.match("macosx-", args.cross_compile_hosts): # Use XCBuild target directory when building for multiple arches. args.target_dir = os.path.join(args.build_dir, "apple/Products") elif re.match('android-', args.cross_compile_hosts):