Skip to content

Commit 87cc554

Browse files
committed
docs: Update WindowsBuild.md
Improve rules for swiftpm and tsc builds.
1 parent 05081ee commit 87cc554

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/WindowsBuild.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ git clone https://github.com/apple/swift-corelibs-libdispatch toolchain/swift-co
3232
git clone https://github.com/apple/swift-corelibs-foundation toolchain/swift-corelibs-foundation
3333
git clone https://github.com/apple/swift-corelibs-xctest toolchain/swift-corelibs-xctest
3434
git clone https://github.com/apple/swift-llbuild toolchain/llbuild
35-
git clone -c core.autocrlf=input https://github.com/apple/swift-package-manager toolchain/swift-package-manager
35+
git clone https://github.com/apple/swift-tools-support-core toolchain/swift-tools-support-core
36+
git clone -c core.autocrlf=input https://github.com/apple/swift-package-manager toolchain/swiftpm
3637
git clone https://github.com/compnerd/windows-swift windows-swift
3738
```
3839

@@ -155,17 +156,15 @@ path S:\b\llbuild\bin;%PATH%
155156
## Build swift-tools-core-support
156157

157158
```cmd
158-
md S:\b\tsc
159159
cmake -B S:\b\tsc -G Ninja -S S:\toolchain\swift-tools-support-core -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=cl -DCMAKE_Swift_COMPILER=S:/b/toolchain/bin/swiftc.exe -DFoundation_DIR=S:/b/foundation/cmake/modules -Ddispatch_DIR=S:/b/libdispatch/cmake/modules
160160
ninja -C S:\b\tsc
161161
```
162162

163163
## Build swift-package-manager
164164

165165
```cmd
166-
md S:\b\spm
167-
cd S:\b\spm
168-
C:\Python27\python.exe S:\swift-package-manager\Utilities\bootstrap --foundation S:\b\foundation --libdispatch-build-dir S:\b\libdispatch --libdispatch-source-dir S:\swift-corelibs-libdispatch --llbuild-build-dir S:\b\llbuild --llbuild-source-dir S:\llbuild --sqlite-build-dir S:\b\sqlite --sqlite-source-dir S:\sqlite-amalgamation-3270200
166+
cmake -B S:\b\spm -G Ninja -S S:\toolchain\swiftpm -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=S:/b/toolchain/bin/clang-cl.exe -DCMAKE_CXX_COMPILER=S:/b/toolchain/bin/clang-cl.exe -DCMAKE_Swift_COMPILER=S:/b/toolchain/bin/swiftc.exe -DUSE_VENDORED_TSC=YES -DFoundation_DIR=S:/b/foundation/cmake/modules -Ddispatch_DIR=S:/b/libdispatch/cmake/modules -DLLBuild_DIR=S:/b/llbuild/cmake/modules
167+
ninja -C S:\b\spm
169168
```
170169

171170
## Install the Swift toolchain on Windows

0 commit comments

Comments
 (0)