Skip to content

Commit d97678c

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-next
2 parents 00e8d0b + 57af472 commit d97678c

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

docs/WindowsBuild.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ it provides some of the needed headers and libraries.
4141
1. Clone `apple/swift-corelibs-foundation` into a folder named `swift-corelibs-foundation`
4242
1. Clone `apple/swift-corelibs-xctest` into a folder name `swift-corelibs-xctest`
4343
1. Clone `apple/swift-lldb` into a folder named `lldb`
44+
1. Clone `curl` into a folder named `curl`
4445
1. Clone `libxml2` into a folder named `libxml2`
4546

4647
- Currently, other repositories in the Swift project have not been tested and
@@ -64,6 +65,7 @@ git clone https://github.com/apple/swift-corelibs-libdispatch
6465
git clone https://github.com/apple/swift-corelibs-foundation
6566
git clone https://github.com/apple/swift-corelibs-xctest
6667
git clone https://github.com/apple/swift-lldb lldb
68+
git clone https://github.com/curl/curl.git curl
6769
git clone https://gitlab.gnome.org/GNOME/libxml2.git libxml2
6870
```
6971

@@ -248,7 +250,17 @@ cmake --build S:\b\libdispatch
248250
path S:\b\libdispatch;S:\b\libdispatch\src;%PATH%
249251
```
250252

251-
### 11. Build libxml2
253+
### 11. Build curl
254+
255+
```cmd
256+
pushd "S:\curl"
257+
.\buildconf.bat
258+
cd winbuild
259+
nmake /f Makefile.vc mode=static VC=15 MACHINE=x64
260+
popd
261+
```
262+
263+
### 12. Build libxml2
252264

253265
```cmd
254266
pushd "S:\libxml2\win32"
@@ -257,11 +269,7 @@ nmake /f Makefile.msvc
257269
popd
258270
```
259271

260-
### 12. Build swift-corelibs-foundation
261-
262-
To build Foundation you will need builds of:
263-
264-
- `libcurl` (https://curl.haxx.se, download the source, `cd` into `winbuild`, and run `nmake /f Makefile.vc mode=static VC=15 MACHINE=x64`)
272+
### 13. Build swift-corelibs-foundation
265273

266274
```cmd
267275
mkdir "S:\b\foundation"
@@ -288,7 +296,7 @@ cmake -G Ninja^
288296
path S:\b\foundation;%PATH%
289297
```
290298

291-
### 13. Build swift-corelibs-xctest
299+
### 14. Build swift-corelibs-xctest
292300

293301
```cmd
294302
mkdir "S:\b\xctest"
@@ -313,7 +321,7 @@ cmake --build S:\b\xctest
313321
path S:\b\xctest;%PATH%
314322
```
315323

316-
### 14. Install Swift on Windows
324+
### 15. Install Swift on Windows
317325

318326
- Run ninja install:
319327

0 commit comments

Comments
 (0)