Skip to content

Commit ef24241

Browse files
authored
Update WindowsBuild.md
Swap order of build for LLVM/clang and CMark.
1 parent f2c3c69 commit ef24241

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

docs/WindowsBuild.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,7 @@ mklink "%VCToolsInstallDir%\include\visualc.apinotes" S:\swift\stdlib\public\Pla
102102

103103
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.
104104

105-
### 5. Build CMark
106-
- This must be done from within a developer command prompt. CMark is a fairly
107-
small project and should only take a few minutes to build.
108-
```cmd
109-
mkdir "S:\b\cmark"
110-
pushd "S:\b\cmark"
111-
cmake -G Ninja^
112-
-DCMAKE_BUILD_TYPE=RelWithDebInfo^
113-
-DCMAKE_C_COMPILER=cl^
114-
-DCMAKE_CXX_COMPILER=cl^
115-
S:/cmark
116-
popd
117-
cmake --build "S:\b\cmark"
118-
```
119-
120-
### 6. Build LLVM/Clang
105+
### 5. Build LLVM/Clang
121106
- This must be done from within a developer command prompt. LLVM and Clang are
122107
large projects, so building might take a few hours. Make sure that the build
123108
type for LLVM/Clang is compatbile with the build type for Swift. That is,
@@ -146,6 +131,21 @@ cmake --build "S:\b\llvm"
146131
path S:\b\llvm\bin;%PATH%
147132
```
148133

134+
### 6. Build CMark
135+
- This must be done from within a developer command prompt. CMark is a fairly
136+
small project and should only take a few minutes to build.
137+
```cmd
138+
mkdir "S:\b\cmark"
139+
pushd "S:\b\cmark"
140+
cmake -G Ninja^
141+
-DCMAKE_BUILD_TYPE=RelWithDebInfo^
142+
-DCMAKE_C_COMPILER=cl^
143+
-DCMAKE_CXX_COMPILER=cl^
144+
S:\cmark
145+
popd
146+
cmake --build "S:\b\cmark"
147+
```
148+
149149
### 7. Build Swift
150150
- This must be done from within a developer command prompt
151151
- 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.

0 commit comments

Comments
 (0)