Skip to content

Commit a7bc9bd

Browse files
committed
Allow correct detection of Apple SDKs when building compiler-rt
1 parent efce129 commit a7bc9bd

File tree

1 file changed

+4
-0
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+4
-0
lines changed

utils/swift_build_support/swift_build_support/products/llvm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ def build(self, host_target):
310310
llvm_cmake_options.define(
311311
'RUNTIMES_CMAKE_ARGS',
312312
LLVM.compute_cmake_args_for_runtimes(host_target))
313+
if system() == "Darwin":
314+
llvm_cmake_options.define('LLVM_BUILTIN_TARGETS', 'arm64-apple-darwin')
315+
llvm_cmake_options.define('LLVM_RUNTIME_TARGETS', 'arm64-apple-darwin')
316+
llvm_cmake_options.define('RUNTIMES_BUILD_ALLOW_DARWIN', 'ON')
313317

314318
if self.args.build_embedded_stdlib and system() == "Darwin":
315319
# Ask for Mach-O cross-compilation builtins (for Embedded Swift)

0 commit comments

Comments
 (0)