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-5Lines changed: 60 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,6 @@ KNOWN_SETTINGS=(
137
137
common-cmake-options """CMake options used for all targets, including LLVM/Clang"
138
138
extra-cmake-options """Extra options to pass to CMake for all targets"
139
139
ninja-cmake-options """CMake options used for all ninja targets"
140
-
ninja-cmake-options """CMake options used for all ninja targets"
141
140
142
141
## Build ...
143
142
build-llvm "1""set to 1 to build LLVM and Clang"
@@ -203,6 +202,7 @@ KNOWN_SETTINGS=(
203
202
swift-stdlib-os-versioning "1""whether to build stdlib with availability based on OS versions (Darwin only)"
204
203
swift-stdlib-stable-abi """should stdlib be built with stable ABI, if not set defaults to true on Darwin, false otherwise"
205
204
swift-disable-dead-stripping "0""turns off Darwin-specific dead stripping for Swift host tools"
205
+
common-swift-flags """Flags used for Swift targets other than the stdlib, like the corelibs"
206
206
207
207
## FREESTANDING Stdlib Options
208
208
swift-freestanding-sdk """which SDK to use when building the FREESTANDING stdlib"
@@ -227,6 +227,7 @@ KNOWN_SETTINGS=(
227
227
cross-compile-hosts """space-separated list of targets to cross-compile host Swift tools for"
228
228
cross-compile-with-host-tools """set to use the clang we build for the host to then build the cross-compile hosts"
229
229
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"
230
+
cross-compile-deps-path """path for CMake to look for cross-compiled library dependencies, such as libXML2"
230
231
skip-merge-lipo-cross-compile-tools """set to skip running merge-lipo after installing cross-compiled host Swift tools"
231
232
coverage-db """If set, coverage database to use when prioritizing testing"
232
233
skip-local-host-install """If we are cross-compiling multiple targets, skip an install pass locally if the hosts match"
@@ -1239,6 +1240,8 @@ function calculate_targets_for_host() {
0 commit comments