Skip to content

Commit 0489d45

Browse files
authored
Merge pull request swiftlang#22873 from apple/testing-privileges
Update WindowsBuild.md
2 parents 78a9e45 + 1139f4d commit 0489d45

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

docs/WindowsBuild.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ it provides some of the needed headers and libraries.
3939
1. Clone `apple/swift` into a folder named `swift`
4040
1. Clone `apple/swift-corelibs-libdispatch` into a folder named `swift-corelibs-libdispatch`
4141
1. Clone `apple/swift-corelibs-foundation` into a folder named `swift-corelibs-foundation`
42+
1. Clone `apple/swift-corelibs-xctest` into a folder name `swift-corelibs-xctest`
4243
1. Clone `apple/swift-lldb` into a folder named `lldb`
4344

4445
- Currently, other repositories in the Swift project have not been tested and
@@ -60,6 +61,7 @@ git clone https://github.com/apple/swift-compiler-rt compiler-rt
6061
git clone https://github.com/apple/swift
6162
git clone https://github.com/apple/swift-corelibs-libdispatch
6263
git clone https://github.com/apple/swift-corelibs-foundation
64+
git clone https://github.com/apple/swift-corelibs-xctest
6365
git clone https://github.com/apple/swift-lldb lldb
6466
```
6567

@@ -268,7 +270,24 @@ cmake -G Ninja^
268270
269271
```
270272

271-
### 12. Install Swift on Windows
273+
### 12. Build swift-corelibs-xctest
274+
275+
```cmd
276+
mkdir "S:\b\xctest"
277+
pushd "S:\b\xctest"
278+
cmke -G Ninja^
279+
-DCMAKE_BUILD_TYPE=RelWithDebInfo^
280+
-DCMAKE_SWIFT_COMPILER=S:\b\swift\bin\swiftc.exe^
281+
-DXCTEST_PATH_TO_COREFOUNDATION_BUILD=S:\b\foundation\CoreFoundation-prefix^
282+
-DXCTEST_PATH_TO_FOUNDATION_BUILD=S:\b\foundation^
283+
-DXCTEST_PATH_TO_LIBDPATCH_SOURCE=S:\b\swift-corelibs-libdispatch^
284+
-DXCTEST_PATH_TO_LIBDISPATCH_BUILD=S:\b\libdispatch^
285+
S:\swift-corelibs-xctest
286+
popd
287+
cmake --build S:\b\xctest
288+
```
289+
290+
### 13. Install Swift on Windows
272291

273292
- Run ninja install:
274293

0 commit comments

Comments
 (0)