@@ -52,7 +52,6 @@ From the settings application, go to `Update & Security`. In the `For developer
52
52
53
53
1 . Clone ` apple/llvm-project ` into a directory for the toolchain
54
54
2 . Clone ` apple/swift-cmark ` , ` apple/swift ` , ` apple/swift-corelibs-libdispatch ` , ` apple/swift-corelibs-foundation ` , ` apple/swift-corelibs-xctest ` , ` apple/swift-llbuild ` , ` apple/swift-package-manager ` into the toolchain directory
55
- 3 . Clone ` compnerd/swift-build ` as a peer of the toolchain directory
56
55
57
56
- Currently, other repositories in the Swift project have not been tested and may not be supported.
58
57
@@ -73,21 +72,12 @@ git clone https://github.com/apple/swift-corelibs-xctest swift-corelibs-xctest
73
72
git clone https://github.com/apple/swift-llbuild llbuild
74
73
git clone https://github.com/apple/swift-tools-support-core swift-tools-support-core
75
74
git clone -c core.autocrlf=input https://github.com/apple/swift-package-manager swiftpm
76
- git clone https://github.com/compnerd/swift-build swift-build
77
75
```
78
76
79
- ## Acquire ICU, SQLite3, curl, libxml2 and zlib
77
+ ## Dependencies ( ICU, SQLite3, curl, libxml2 and zlib)
80
78
81
- ```
82
- C:\Python27\python.exe -m pip install --user msrest azure-devops tabulate
83
- C:\Python27\python.exe swift-build\utilities\swift-build.py --build-id ICU --latest-artifacts --filter windows-x64 --download
84
- C:\Python27\python.exe swift-build\utilities\swift-build.py --build-id XML2 --latest-artifacts --filter windows-x64 --download
85
- C:\Python27\python.exe swift-build\utilities\swift-build.py --build-id CURL --latest-artifacts --filter windows-x64 --download
86
- C:\Python27\python.exe swift-build\utilities\swift-build.py --build-id zlib --latest-artifacts --filter windows-x64 --download
87
- C:\Python27\python.exe swift-build\utilities\swift-build.py --build-id SQLite --latest-artifacts --filter windows-x64 --download
88
- ```
89
-
90
- Extract the zip files, ignoring the top level directory, into ` S:/Library ` . The directory structure should resemble:
79
+ The instructions assume that the dependencies are in ` S:/Library ` . The directory
80
+ structure should resemble:
91
81
92
82
```
93
83
/Library
@@ -103,6 +93,10 @@ Extract the zip files, ignoring the top level directory, into `S:/Library`. The
103
93
┕ usr/...
104
94
```
105
95
96
+ Note that only ICU is required for building the toolchain, and SQLite is only
97
+ needed for building llbuild and onwards. The ICU project provides binaries,
98
+ alternatively, see the ICU project for details on building ICU from source.
99
+
106
100
## One-time Setup (re-run on Visual Studio upgrades)
107
101
108
102
Set up the ` ucrt ` , ` visualc ` , and ` WinSDK ` modules by:
@@ -126,26 +120,17 @@ Warning: Creating the above links usually requires administrator privileges. The
126
120
127
121
``` cmd
128
122
cmake -B "S:\b\toolchain" ^
129
- -C S:\swift-build\cmake\caches\windows-x86_64.cmake ^
130
- -C S:\swift-build\cmake\caches\org.compnerd.dt.cmake ^
123
+ -C S:\swift\cmake\caches\Windows-x86_64.cmake ^
131
124
-D CMAKE_BUILD_TYPE=Release ^
132
- -D LLVM_ENABLE_ASSERTIONS=YES ^
133
- -D LLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lldb;lld" ^
134
- -D LLVM_EXTERNAL_PROJECTS="cmark;swift" ^
135
125
-D SWIFT_PATH_TO_LIBDISPATCH_SOURCE=S:\swift-corelibs-libdispatch ^
136
126
-D LLVM_ENABLE_PDB=YES ^
137
- -D LLVM_ENABLE_LIBEDIT=NO ^
138
- -D LLDB_ENABLE_PYTHON=YES ^
139
- -D LLVM_EXTERNAL_SWIFT_SOURCE_DIR="S:/swift" ^
140
- -D LLVM_EXTERNAL_CMARK_SOURCE_DIR="S:/cmark" ^
141
- -D SWIFT_WINDOWS_x86_64_ICU_UC_INCLUDE="S:/Library/icu-67/usr/include" ^
142
- -D SWIFT_WINDOWS_x86_64_ICU_UC="S:/Library/icu-67/usr/lib/icuuc67.lib" ^
143
- -D SWIFT_WINDOWS_x86_64_ICU_I18N_INCLUDE="S:/Library/icu-67/usr/include" ^
144
- -D SWIFT_WINDOWS_x86_64_ICU_I18N="S:/Library/icu-67/usr/lib/icuin67.lib" ^
145
- -D CMAKE_INSTALL_PREFIX="C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr" ^
146
- -D PYTHON_EXECUTABLE=C:\Python27\python.exe ^
147
- -D SWIFT_BUILD_DYNAMIC_STDLIB=YES ^
148
- -D SWIFT_BUILD_DYNAMIC_SDK_OVERLAY=YES ^
127
+ -D LLVM_EXTERNAL_SWIFT_SOURCE_DIR=S:\swift ^
128
+ -D LLVM_EXTERNAL_CMARK_SOURCE_DIR=S:\cmark ^
129
+ -D SWIFT_WINDOWS_x86_64_ICU_UC_INCLUDE=S:\Library\icu-67\usr\include ^
130
+ -D SWIFT_WINDOWS_x86_64_ICU_UC=S:\Library\icu-67\usr\lib\icuuc67.lib ^
131
+ -D SWIFT_WINDOWS_x86_64_ICU_I18N_INCLUDE=S:\Library\icu-67\usr\include ^
132
+ -D SWIFT_WINDOWS_x86_64_ICU_I18N=S:\Library\icu-67\usr\lib\icuin67.lib ^
133
+ -D CMAKE_INSTALL_PREFIX=C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr ^
149
134
-G Ninja ^
150
135
-S S:\llvm-project\llvm
151
136
0 commit comments