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.
121
110
122
-
### 6. Build LLVM/Clang
111
+
### 5. Build LLVM/Clang
123
112
- This must be done from within a developer command prompt. LLVM and Clang are
124
113
large projects, so building might take a few hours. Make sure that the build
125
114
type for LLVM/Clang is compatbile with the build type for Swift. That is,
@@ -148,7 +137,7 @@ cmake --build "S:\b\llvm"
148
137
path S:\b\llvm\bin;%PATH%
149
138
```
150
139
151
-
### 7. Build CMark
140
+
### 6. Build CMark
152
141
- This must be done from within a developer command prompt. CMark is a fairly
153
142
small project and should only take a few minutes to build.
154
143
```cmd
@@ -163,7 +152,7 @@ popd
163
152
cmake --build "S:\b\cmark"
164
153
```
165
154
166
-
### 8. Build Swift
155
+
### 7. Build Swift
167
156
- This must be done from within a developer command prompt
168
157
- 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.
169
158
@@ -204,7 +193,7 @@ cmake --build "S:\b\swift"
204
193
cmake -G "Visual Studio 2017" -A x64 -T "host=x64"^ ...
205
194
```
206
195
207
-
### 9. Build lldb
196
+
### 8. Build lldb
208
197
- This must be done from within a developer command prompt and could take hours
209
198
depending on your system.
210
199
```cmd
@@ -225,7 +214,7 @@ popd
225
214
cmake --build S:\b\lldb
226
215
```
227
216
228
-
### 10. Running tests on Windows
217
+
### 9. Running tests on Windows
229
218
230
219
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