From a44b0f800913766bdd49acea0533dc60cc946543 Mon Sep 17 00:00:00 2001 From: Han Shen Date: Wed, 18 Aug 2021 14:18:22 -0700 Subject: [PATCH] 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 --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d59a668a4..dfff27685 100644 --- a/README.md +++ b/README.md @@ -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