Skip to content

Commit 14d5043

Browse files
authored
Use get_build_target consistently (#2861)
There were still a few places in the bootstrap script that were using a hardcoded target triple. rdar://problem/63036398 (cherry picked from commit ab03d78)
1 parent 6306663 commit 14d5043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utilities/bootstrap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def build_tsc(args):
430430

431431
cmake_flags = []
432432
if platform.system() == 'Darwin':
433-
cmake_flags.append("-DCMAKE_C_FLAGS=-target x86_64-apple-macosx%s" % g_macos_deployment_target)
433+
cmake_flags.append("-DCMAKE_C_FLAGS=-target %s%s" % (get_build_target(args), g_macos_deployment_target))
434434
cmake_flags.append("-DCMAKE_OSX_DEPLOYMENT_TARGET=%s" % g_macos_deployment_target)
435435

436436
build_with_cmake(args, cmake_flags, args.tsc_source_dir, args.tsc_build_dir)
@@ -445,7 +445,7 @@ def build_swiftpm_with_cmake(args):
445445
]
446446

447447
if platform.system() == 'Darwin':
448-
cmake_flags.append("-DCMAKE_C_FLAGS=-target x86_64-apple-macosx%s" % g_macos_deployment_target)
448+
cmake_flags.append("-DCMAKE_C_FLAGS=-target %s%s" % (get_build_target(args), g_macos_deployment_target))
449449
cmake_flags.append("-DCMAKE_OSX_DEPLOYMENT_TARGET=%s" % g_macos_deployment_target)
450450

451451
build_with_cmake(args, cmake_flags, args.project_root, args.bootstrap_dir)

0 commit comments

Comments
 (0)