Add instruction in README.md to config a release build. (#1282)

* Add instruction in README.md to config a release build.

* Use RelWithDebInfo instead of Release in README.md

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
This commit is contained in:
Han Shen 2021-08-18 14:18:22 -07:00 committed by GitHub
parent 846dafb07e
commit a44b0f8009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -30,7 +30,8 @@ For a more detailed description, and dependencies, visit: https://github.com/tra
$ cd transmission-2.92
$ mkdir build
$ cd build
$ cmake ..
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install
@ -47,7 +48,8 @@ If you're new to building programs from source code, this is typically easier th
$ git submodule update --init
$ mkdir build
$ cd build
$ cmake ..
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install
@ -57,7 +59,8 @@ If you're new to building programs from source code, this is typically easier th
$ make clean
$ git pull --rebase --prune
$ git submodule update
$ cmake ..
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install