Skip to content

Commit 78c957e

Browse files
committed
utils: update curl to 8.9.1 from 8.5.0
Update the embedded curl version for Windows. Adjust the flags accordingly.
1 parent 262ba2b commit 78c957e

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

utils/build.ps1

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,8 +1452,8 @@ function Build-CURL([Platform]$Platform, $Arch) {
14521452

14531453
Build-CMakeProject `
14541454
-Src $SourceCache\curl `
1455-
-Bin "$($Arch.BinaryCache)\$Platform\curl-8.5.0" `
1456-
-InstallTo "$LibraryRoot\curl-8.5.0\usr" `
1455+
-Bin "$($Arch.BinaryCache)\$Platform\curl-8.9.1" `
1456+
-InstallTo "$LibraryRoot\curl-8.9.1\usr" `
14571457
-Arch $Arch `
14581458
-Platform $Platform `
14591459
-UseMSVCCompilers C `
@@ -1464,6 +1464,8 @@ function Build-CURL([Platform]$Platform, $Arch) {
14641464
CMAKE_INSTALL_LIBDIR = "lib/$Platform/$ArchName";
14651465
CMAKE_SYSTEM_NAME = $Platform.ToString();
14661466
BUILD_CURL_EXE = "NO";
1467+
BUILD_LIBCURL_DOCS = "NO";
1468+
BUILD_MISC_DOCS = "NO";
14671469
CURL_CA_BUNDLE = "none";
14681470
CURL_CA_FALLBACK = "NO";
14691471
CURL_CA_PATH = "none";
@@ -1472,6 +1474,7 @@ function Build-CURL([Platform]$Platform, $Arch) {
14721474
CURL_DISABLE_AWS = "YES";
14731475
CURL_DISABLE_BASIC_AUTH = "NO";
14741476
CURL_DISABLE_BEARER_AUTH = "NO";
1477+
CURL_DISABLE_BINDLOCAL = "NO";
14751478
CURL_DISABLE_COOKIES = "NO";
14761479
CURL_DISABLE_DICT = "YES";
14771480
CURL_DISABLE_DIGEST_AUTH = "NO";
@@ -1481,6 +1484,7 @@ function Build-CURL([Platform]$Platform, $Arch) {
14811484
CURL_DISABLE_FTP = "YES";
14821485
CURL_DISABLE_GETOPTIONS = "NO";
14831486
CURL_DISABLE_GOPHER = "YES";
1487+
CURL_DISABLE_HEADERS_API = "YES";
14841488
CURL_DISABLE_HSTS = "NO";
14851489
CURL_DISABLE_HTTP = "NO";
14861490
CURL_DISABLE_HTTP_AUTH = "NO";
@@ -1522,19 +1526,22 @@ function Build-CURL([Platform]$Platform, $Arch) {
15221526
CURL_ZSTD = "NO";
15231527
ENABLE_ARES = "NO";
15241528
ENABLE_CURLDEBUG = "NO";
1529+
ENABLE_CURL_MANUAL = "NO";
15251530
ENABLE_DEBUG = "NO";
15261531
ENABLE_IPV6 = "YES";
1527-
ENABLE_MANUAL = "NO";
15281532
ENABLE_THREADED_RESOLVER = "NO";
15291533
ENABLE_UNICODE = "YES";
15301534
ENABLE_UNIX_SOCKETS = "NO";
15311535
ENABLE_WEBSOCKETS = "YES";
15321536
HAVE_POLL_FINE = "NO";
1537+
USE_ECH = "NO";
1538+
USE_HTTPSRR = "NO";
15331539
USE_IDN2 = "NO";
15341540
USE_MSH3 = "NO";
15351541
USE_NGHTTP2 = "NO";
15361542
USE_NGTCP2 = "NO";
15371543
USE_QUICHE = "NO";
1544+
USE_OPENSSL_QUIC = "NO";
15381545
USE_WIN32_IDN = if ($Platform -eq "Windows") { "YES" } else { "NO" };
15391546
USE_WIN32_LARGE_FILES = if ($Platform -eq "Windows") { "YES" } else { "NO" };
15401547
USE_WIN32_LDAP = "NO";
@@ -1671,7 +1678,7 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
16711678
-BuildTargets $Targets `
16721679
-Defines (@{
16731680
FOUNDATION_BUILD_TOOLS = if ($Platform -eq "Windows") { "YES" } else { "NO" };
1674-
CURL_DIR = "$LibraryRoot\curl-8.5.0\usr\lib\$Platform\$ShortArch\cmake\CURL";
1681+
CURL_DIR = "$LibraryRoot\curl-8.9.1\usr\lib\$Platform\$ShortArch\cmake\CURL";
16751682
LIBXML2_LIBRARY = if ($Platform -eq "Windows") {
16761683
"$LibraryRoot\libxml2-2.11.5\usr\lib\$Platform\$ShortArch\libxml2s.lib";
16771684
} else {

utils/swift_build_support/swift_build_support/products/curl.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,15 @@ def build(self, host_target):
8888
self.cmake_options.define('CMAKE_INSTALL_LIBDIR', 'lib')
8989
self.cmake_options.define('CMAKE_INSTALL_PREFIX', '/usr')
9090
self.cmake_options.define('BUILD_CURL_EXE', 'NO')
91+
self.cmake_options.define('BUILD_LIBCURL_DOCS', 'NO')
92+
self.cmake_options.define('BUILD_MISC_DOCS', 'NO')
9193
self.cmake_options.define('CMAKE_USE_OPENSSL', 'NO')
9294
self.cmake_options.define('CURL_CA_PATH', 'none')
9395
self.cmake_options.define('CMAKE_USE_SCHANNEL', 'NO')
9496
self.cmake_options.define('CMAKE_USE_LIBSSH2', 'NO')
9597
self.cmake_options.define('HAVE_POLL_FINE', 'NO')
98+
self.cmake_options.define('CURL_DISABLE_BINDLOCAL', 'NO')
99+
self.cmake_options.define('CURL_DISABLE_HEADERS_API', 'YES')
96100
self.cmake_options.define('CURL_DISABLE_LDAP', 'YES')
97101
self.cmake_options.define('CURL_DISABLE_LDAPS', 'YES')
98102
self.cmake_options.define('CURL_DISABLE_TELNET', 'YES')
@@ -106,8 +110,12 @@ def build(self, host_target):
106110
self.cmake_options.define('CURL_DISABLE_SMTP', 'YES')
107111
self.cmake_options.define('CURL_DISABLE_GOPHER', 'YES')
108112
self.cmake_options.define('CURL_ZLIB', 'YES')
113+
self.cmake_options.define('ENABLE_CURL_MANUAL', 'NO')
109114
self.cmake_options.define('ENABLE_UNIX_SOCKETS', 'NO')
110115
self.cmake_options.define('ENABLE_THREADED_RESOLVER', 'NO')
116+
self.cmake_options.define('USE_ECH', 'NO')
117+
self.cmake_options.deifne('USE_HTTPSRR', 'NO')
118+
self.cmake_options.deifne('USE_OPENSSL_QUIC', 'NO')
111119

112120
self.generate_toolchain_file_for_darwin_or_linux(host_target)
113121

utils/update_checkout/update-checkout-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"swift-sdk-generator": "main",
161161
"wasi-libc": "wasi-sdk-20",
162162
"wasmkit": "0.0.3",
163-
"curl": "curl-8_5_0",
163+
"curl": "curl-8_9_1",
164164
"libxml2": "v2.11.5",
165165
"zlib": "v1.3.1"
166166
}

0 commit comments

Comments
 (0)