From 1bf6ac81189a097d5ad6fb3f736c17df149b8bde Mon Sep 17 00:00:00 2001 From: Eric Miotto Date: Thu, 1 May 2025 15:48:12 -0700 Subject: [PATCH] compiler-rt: use the current host architecture for the runtime targets This will ensure all the test executables generated by `check-*` targets can run on the current machine. Addresses rdar://150469492 --- utils/swift_build_support/swift_build_support/products/llvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/swift_build_support/swift_build_support/products/llvm.py b/utils/swift_build_support/swift_build_support/products/llvm.py index 6fc15415e40f5..92721fb45c797 100644 --- a/utils/swift_build_support/swift_build_support/products/llvm.py +++ b/utils/swift_build_support/swift_build_support/products/llvm.py @@ -313,7 +313,7 @@ def build(self, host_target): llvm_cmake_options.define( 'SANITIZER_COMMON_LINK_FLAGS:STRING', '-Wl,-z,undefs') - builtins_runtimes_target_for_darwin = 'arm64-apple-darwin' + builtins_runtimes_target_for_darwin = f'{arch}-apple-darwin' if system() == "Darwin": llvm_cmake_options.define( f'BUILTINS_{builtins_runtimes_target_for_darwin}_'