Skip to content

Commit d2ea478

Browse files
authored
Merge pull request #82924 from finagolfin/cmake
[build] Fix libcurl and cross-compiling corelibs
2 parents 4064ad1 + fd36962 commit d2ea478

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

utils/build-script-impl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,12 @@ function set_build_options_for_host() {
827827
# and it must be the same for both LLVM and Swift
828828

829829
if [[ "${SWIFT_HOST_TRIPLE}" ]] ; then
830+
# Adding this until we can configure these corelibs repos with a CMake
831+
# toolchain file
832+
SWIFT_TARGET_CMAKE_OPTIONS+=(
833+
-DCMAKE_Swift_COMPILER_TARGET:STRING="${SWIFT_HOST_TRIPLE}"
834+
)
835+
830836
llvm_cmake_options+=(
831837
-DLLVM_HOST_TRIPLE:STRING="${SWIFT_HOST_TRIPLE}"
832838
)

utils/swift_build_support/swift_build_support/products/curl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ def build(self, host_target):
114114
self.cmake_options.define('ENABLE_UNIX_SOCKETS', 'NO')
115115
self.cmake_options.define('ENABLE_THREADED_RESOLVER', 'NO')
116116
self.cmake_options.define('USE_ECH', 'NO')
117-
self.cmake_options.deifne('USE_HTTPSRR', 'NO')
118-
self.cmake_options.deifne('USE_OPENSSL_QUIC', 'NO')
117+
self.cmake_options.define('USE_HTTPSRR', 'NO')
118+
self.cmake_options.define('USE_OPENSSL_QUIC', 'NO')
119119

120120
self.generate_toolchain_file_for_darwin_or_linux(host_target)
121121

122122
if self.args.build_zlib:
123123
# If we're building zlib, make cmake search in the built toolchain
124124
toolchain_path = self.host_install_destdir(host_target)
125125
self.cmake_options.define('CMAKE_FIND_ROOT_PATH', toolchain_path)
126-
self.build_with_cmake(['libcurl'], self.args.curl_build_variant, [])
126+
self.build_with_cmake(['libcurl_static'], self.args.curl_build_variant, [])

0 commit comments

Comments
 (0)