Skip to content

Commit db7b80f

Browse files
committed
[WindowsBuild] Complete install guide
1 parent 3eb930b commit db7b80f

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

docs/WindowsBuild.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,9 @@ cmake --build S:\b\11
653653

654654
## Gather the toolchain and SDK
655655

656-
If you want a toolchain for real-world testing or distribution, you can use CMake to perform the install step.
656+
If you want a toolchain for real-world testing, you can use CMake to perform the install step.
657657

658-
### Swift compiler and standard library
658+
### Swift compiler and standard libraries
659659

660660
```cmd
661661
cmake --build S:\b\1 --target install
@@ -667,16 +667,41 @@ For testing, add the target to path:
667667
path S:\b\toolchain\usr\bin:%PATH%
668668
```
669669

670-
## Swift Windows SDK (with core libraries)
670+
### Swift Windows SDK (with core libraries)
671671

672672
```cmd
673673
cmake --build S:\b\2 --target install
674674
cmake --build S:\b\3 --target install
675675
cmake --build S:\b\4 --target install
676+
cmake --build S:\b\5 --target install
676677
```
677678

678-
For testing, set `SDKROOT`:
679+
For testing, set `%SDKROOT%` and the default runtime:
679680

680681
```cmd
681682
set SDKROOT=S:\b\sdk
683+
python -c "import plistlib; print(str(plistlib.dumps({ 'DefaultProperties': { 'DEFAULT_USE_RUNTIME': 'MD' } }), encoding='utf-8'))" > S:\b\sdk\SDKSettings.plist
684+
```
685+
686+
### Swift toolchain with developer tools
687+
688+
```cmd
689+
cmake --build S:\b\1 --target install
690+
cmake --build S:\b\6 --target install
691+
cmake --build S:\b\7\Yams --target install
692+
cmake --build S:\b\7\ArgumentParser --target install
693+
cmake --build S:\b\7\SwiftSystem --target install
694+
cmake --build S:\b\7\SwiftCollections --target install
695+
cmake --build S:\b\7\IndexStoreDB --target install
696+
cmake --build S:\b\8 --target install
697+
cmake --build S:\b\9 --target install
698+
cmake --build S:\b\10 --target install
699+
cmake --build S:\b\11 --target install
700+
```
701+
702+
To use Swift Driver in place of the old driver:
703+
704+
```cmd
705+
copy /Y S:\b\toolchain\usr\bin\swift-driver.exe S:\b\toolchain\usr\bin\swift.exe
706+
copy /Y S:\b\toolchain\usr\bin\swift-driver.exe S:\b\toolchain\usr\bin\swiftc.exe
682707
```

0 commit comments

Comments
 (0)