Skip to content

Commit 1bf6ac8

Browse files
committed
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
1 parent 2838208 commit 1bf6ac8

File tree

1 file changed

+1
-1
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+1
-1
lines changed

utils/swift_build_support/swift_build_support/products/llvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def build(self, host_target):
313313
llvm_cmake_options.define(
314314
'SANITIZER_COMMON_LINK_FLAGS:STRING', '-Wl,-z,undefs')
315315

316-
builtins_runtimes_target_for_darwin = 'arm64-apple-darwin'
316+
builtins_runtimes_target_for_darwin = f'{arch}-apple-darwin'
317317
if system() == "Darwin":
318318
llvm_cmake_options.define(
319319
f'BUILTINS_{builtins_runtimes_target_for_darwin}_'

0 commit comments

Comments
 (0)