Skip to content

Commit

Permalink
Update Visual Studio build command lines in the documentation (#5729)
Browse files Browse the repository at this point in the history
Updates several Visual Studio command lines showing how to build in the docs.  
Based on https://stackoverflow.com/questions/28350214/how-to-build-x86-and-or-x64-on-windows-from-command-line-with-cmake
  • Loading branch information
ThiagoAlexsander authored Nov 10, 2022
1 parent 13617c3 commit 9fb14a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/docs/building.dox
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ To build 64-bit DynamoRIO in release mode, launch the `Visual Studio 2019 > x64
$ bin32\drrun.exe notepad.exe
```

If you need a 32-bit build, choose `x32 Native Tools Command Prompt` and pass `-G"Visual Studio 16" -A x86` to cmake.
If you need a 32-bit build, choose `x86 Native Tools Command Prompt` and pass `-G"Visual Studio 16 2019" -A Win32` to cmake.

An alternative to the command prompt is to execute the appropriate vcvars.bat command for your compiler in your shell of choice.

Expand All @@ -112,7 +112,7 @@ $ make -j

or on Windows:
```
$ cmake -G"Visual Studio 16" .. -DDEBUG=ON
$ cmake -G"Visual Studio 16 2019" .. -DDEBUG=ON
$ cmake --build . --config Debug
```

Expand All @@ -121,7 +121,7 @@ produce a debug build currently.

For 64-bit build on Windows:
```
$ cmake -G"Visual Studio 16 Win64" .. -DDEBUG=ON
$ cmake -G"Visual Studio 16 x64" .. -DDEBUG=ON
$ cmake --build . --config Debug
```

Expand Down

0 comments on commit 9fb14a7

Please sign in to comment.