You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- From within a **developer** command prompt (not PowerShell nor cmd, but the [Visual Studio Developer Command Prompt](https://msdn.microsoft.com/en-us/library/f35ctcxw.aspx)), execute the following command if you have an x64 PC.
Warning: Creating the above links usually requires administrator privileges. The quick and easy way to do this is to open a second developer prompt by right clicking whatever shortcut you used to open the first one, choosing Run As Administrator, and pasting the above commands into the resulting window. You can then close the privileged prompt; this is the only step which requires elevation.
110
121
111
-
### 5. Build LLVM/Clang
122
+
### 6. Build LLVM/Clang
112
123
- This must be done from within a developer command prompt. LLVM and Clang are
113
124
large projects, so building might take a few hours. Make sure that the build
114
125
type for LLVM/Clang is compatbile with the build type for Swift. That is,
@@ -137,7 +148,7 @@ cmake --build "S:\b\llvm"
137
148
path S:\b\llvm\bin;%PATH%
138
149
```
139
150
140
-
### 6. Build CMark
151
+
### 7. Build CMark
141
152
- This must be done from within a developer command prompt. CMark is a fairly
142
153
small project and should only take a few minutes to build.
143
154
```cmd
@@ -152,7 +163,7 @@ popd
152
163
cmake --build "S:\b\cmark"
153
164
```
154
165
155
-
### 7. Build Swift
166
+
### 8. Build Swift
156
167
- This must be done from within a developer command prompt
157
168
- Note that Visual Studio vends a 32-bit python 2.7 installation in `C:\Python27` and a 64-bit python in `C:\Python27amd64`. You may use either one based on your installation.
158
169
@@ -193,7 +204,7 @@ cmake --build "S:\b\swift"
193
204
cmake -G "Visual Studio 2017" -A x64 -T "host=x64"^ ...
194
205
```
195
206
196
-
### 8. Build lldb
207
+
### 9. Build lldb
197
208
- This must be done from within a developer command prompt and could take hours
198
209
depending on your system.
199
210
```cmd
@@ -214,7 +225,7 @@ popd
214
225
cmake --build S:\b\lldb
215
226
```
216
227
217
-
### 9. Running tests on Windows
228
+
### 10. Running tests on Windows
218
229
219
230
Running the testsuite on Windows has additional external dependencies. You must have a subset of the GNUWin32 programs installed and available in your path. The following packages are currently required:
- Add the Swift on Windows binaries path (`C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin`) to the `PATH` environment variable.
369
-
370
-
## MSVC
371
-
372
-
To use `cl` instead, just replace the `-DCMAKE_C_COMPILER` and `-DCMAKE_CXX_COMPILER` parameters to the `cmake` invocations.
0 commit comments