11diff --git a/CMakeLists.txt b/CMakeLists.txt
2- index 2748e9420cd..665fad4fd2a 100644
2+ index bc9b6790922..2543fa1ae37 100644
33--- a/CMakeLists.txt
44+++ b/CMakeLists.txt
5- @@ -866 ,12 +866 ,12 @@ if(SWIFT_PARALLEL_LINK_JOBS)
5+ @@ -966 ,12 +966 ,12 @@ if(SWIFT_PARALLEL_LINK_JOBS)
66 endif()
77 endif()
88
@@ -82,10 +82,10 @@ index 8046ea79966..4c2c040a573 100644
8282+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/stdlib/public/SwiftShims DESTINATION stdlib/public)
8383+
8484diff --git a/cmake/modules/SwiftComponents.cmake b/cmake/modules/SwiftComponents.cmake
85- index 401cff7a6ef..15dba54db72 100644
85+ index d7a03ae74ed..5506512d77f 100644
8686--- a/cmake/modules/SwiftComponents.cmake
8787+++ b/cmake/modules/SwiftComponents.cmake
88- @@ -72 ,7 +72 ,7 @@ set(_SWIFT_DEFINED_COMPONENTS
88+ @@ -74 ,7 +74 ,7 @@ set(_SWIFT_DEFINED_COMPONENTS
8989 # for the following exceptions.
9090 set(_SWIFT_DEFAULT_COMPONENTS "${_SWIFT_DEFINED_COMPONENTS}")
9191 # 'dev' takes up a lot of disk space and isn't part of a normal toolchain.
@@ -95,7 +95,7 @@ index 401cff7a6ef..15dba54db72 100644
9595 list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-resource-dir-symlink")
9696 list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-builtin-headers-in-clang-resource-dir")
9797diff --git a/cmake/modules/SwiftSharedCMakeConfig.cmake b/cmake/modules/SwiftSharedCMakeConfig.cmake
98- index 0b830e33ce1..22f074cf7ae 100644
98+ index 26ada5dc9ac..f5e98328616 100644
9999--- a/cmake/modules/SwiftSharedCMakeConfig.cmake
100100+++ b/cmake/modules/SwiftSharedCMakeConfig.cmake
101101@@ -14,6 +14,20 @@ macro(swift_common_standalone_build_config_llvm product)
@@ -120,32 +120,18 @@ index 0b830e33ce1..22f074cf7ae 100644
120120
121121 set(LLVM_MAIN_SRC_DIR "${LLVM_BUILD_MAIN_SRC_DIR}"
122122diff --git a/utils/build-script b/utils/build-script
123- index 3f2e0549568..885264e7e89 100755
123+ index 4440554af7e..8fd83951c4e 100755
124124--- a/utils/build-script
125125+++ b/utils/build-script
126- @@ -720,6 +720,9 @@ class BuildScriptInvocation(object):
127- '-DCMAKE_IGNORE_PATH=/usr/lib;/usr/local/lib;/lib',
128- '-DPKG_CONFIG_EXECUTABLE=/usr/bin/false',
129- ]
130- + args.extra_cmake_options += [
131- + '-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64'
132- + ]
126+ @@ -354,6 +354,11 @@ def apply_default_arguments(toolchain, args):
127+ args.android = True
128+ args.build_android = False
133129
134- if toolchain.libtool is not None:
135- impl_args += [
136- diff --git a/utils/swift_build_support/swift_build_support/products/cmark.py b/utils/swift_build_support/swift_build_support/products/cmark.py
137- index cac4f2e03d1..eb854e76860 100644
138- --- a/utils/swift_build_support/swift_build_support/products/cmark.py
139- +++ b/utils/swift_build_support/swift_build_support/products/cmark.py
140- @@ -14,6 +14,11 @@ from . import product
141-
142-
143- class CMark(product.Product):
144- + def __init__(self, args, toolchain, source_dir, build_dir):
145- + product.Product.__init__(self, args, toolchain, source_dir,
146- + build_dir)
147- + self.cmake_options.define('CMAKE_INSTALL_PREFIX:STRING', self.args.install_prefix)
130+ + args.extra_cmake_options += [
131+ + '-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64'
132+ + ]
133+ +
148134+
149- @classmethod
150- def is_build_script_impl_product(cls) :
151- """is_build_script_impl_product -> bool
135+ # Include the Darwin supported architectures in the CMake options.
136+ if args.swift_darwin_supported_archs :
137+ args.extra_cmake_options.append(
0 commit comments