1
1
diff --git a/CMakeLists.txt b/CMakeLists.txt
2
- index 2748e9420cd..665fad4fd2a 100644
2
+ index bc9b6790922..2543fa1ae37 100644
3
3
--- a/CMakeLists.txt
4
4
+++ b/CMakeLists.txt
5
- @@ -866 ,12 +866 ,12 @@ if(SWIFT_PARALLEL_LINK_JOBS)
5
+ @@ -966 ,12 +966 ,12 @@ if(SWIFT_PARALLEL_LINK_JOBS)
6
6
endif()
7
7
endif()
8
8
@@ -82,10 +82,10 @@ index 8046ea79966..4c2c040a573 100644
82
82
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/stdlib/public/SwiftShims DESTINATION stdlib/public)
83
83
+
84
84
diff --git a/cmake/modules/SwiftComponents.cmake b/cmake/modules/SwiftComponents.cmake
85
- index 401cff7a6ef..15dba54db72 100644
85
+ index d7a03ae74ed..5506512d77f 100644
86
86
--- a/cmake/modules/SwiftComponents.cmake
87
87
+++ b/cmake/modules/SwiftComponents.cmake
88
- @@ -72 ,7 +72 ,7 @@ set(_SWIFT_DEFINED_COMPONENTS
88
+ @@ -74 ,7 +74 ,7 @@ set(_SWIFT_DEFINED_COMPONENTS
89
89
# for the following exceptions.
90
90
set(_SWIFT_DEFAULT_COMPONENTS "${_SWIFT_DEFINED_COMPONENTS}")
91
91
# 'dev' takes up a lot of disk space and isn't part of a normal toolchain.
@@ -95,7 +95,7 @@ index 401cff7a6ef..15dba54db72 100644
95
95
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-resource-dir-symlink")
96
96
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-builtin-headers-in-clang-resource-dir")
97
97
diff --git a/cmake/modules/SwiftSharedCMakeConfig.cmake b/cmake/modules/SwiftSharedCMakeConfig.cmake
98
- index 0b830e33ce1..22f074cf7ae 100644
98
+ index 26ada5dc9ac..f5e98328616 100644
99
99
--- a/cmake/modules/SwiftSharedCMakeConfig.cmake
100
100
+++ b/cmake/modules/SwiftSharedCMakeConfig.cmake
101
101
@@ -14,6 +14,20 @@ macro(swift_common_standalone_build_config_llvm product)
@@ -120,32 +120,18 @@ index 0b830e33ce1..22f074cf7ae 100644
120
120
121
121
set(LLVM_MAIN_SRC_DIR "${LLVM_BUILD_MAIN_SRC_DIR}"
122
122
diff --git a/utils/build-script b/utils/build-script
123
- index 3f2e0549568..885264e7e89 100755
123
+ index 4440554af7e..8fd83951c4e 100755
124
124
--- a/utils/build-script
125
125
+++ 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
133
129
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
+ +
148
134
+
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