You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[build] Add the flags to enable cross-compiling the corelibs
Pass the Swift and CMake flags needed to cross-compile Foundation and so on, with
the first example of Android. Add a new flag, --cross-compile-deps-path, which is
used to search for cross-compiled libraries, like libcurl, that the corelibs
depend on. Also add a new flag, --common-swift-flags, to pass additional Swift
flags to the corelibs.
Copy file name to clipboardExpand all lines: utils/build-script-impl
+60-5
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,6 @@ KNOWN_SETTINGS=(
139
139
common-cmake-options """CMake options used for all targets, including LLVM/Clang"
140
140
extra-cmake-options """Extra options to pass to CMake for all targets"
141
141
ninja-cmake-options """CMake options used for all ninja targets"
142
-
ninja-cmake-options """CMake options used for all ninja targets"
143
142
144
143
## Build ...
145
144
build-llvm "1""set to 1 to build LLVM and Clang"
@@ -205,6 +204,7 @@ KNOWN_SETTINGS=(
205
204
swift-stdlib-os-versioning "1""whether to build stdlib with availability based on OS versions (Darwin only)"
206
205
swift-stdlib-stable-abi """should stdlib be built with stable ABI, if not set defaults to true on Darwin, false otherwise"
207
206
swift-disable-dead-stripping "0""turns off Darwin-specific dead stripping for Swift host tools"
207
+
common-swift-flags """Flags used for Swift targets other than the stdlib, like the corelibs"
208
208
209
209
## FREESTANDING Stdlib Options
210
210
swift-freestanding-sdk """which SDK to use when building the FREESTANDING stdlib"
@@ -229,6 +229,7 @@ KNOWN_SETTINGS=(
229
229
cross-compile-hosts """space-separated list of targets to cross-compile host Swift tools for"
230
230
cross-compile-with-host-tools """set to use the clang we build for the host to then build the cross-compile hosts"
231
231
cross-compile-install-prefixes """semicolon-separated list of install prefixes to use for the cross-compiled hosts. The list expands, so if there are more cross-compile hosts than prefixes, unmatched hosts use the last prefix in the list"
232
+
cross-compile-deps-path """path for CMake to look for cross-compiled library dependencies, such as libXML2"
232
233
skip-merge-lipo-cross-compile-tools """set to skip running merge-lipo after installing cross-compiled host Swift tools"
233
234
coverage-db """If set, coverage database to use when prioritizing testing"
234
235
skip-local-host-install """If we are cross-compiling multiple targets, skip an install pass locally if the hosts match"
@@ -1249,6 +1250,8 @@ function calculate_targets_for_host() {
0 commit comments