summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2017-12-02 14:13:50 +1030
committerAlbert Astals Cid <aacid@kde.org>2017-12-02 10:32:38 +0100
commitf007ab6beb2616850488271da5162f4ef0dbe789 (patch)
tree573fc6d01b6b4c8878ec2c12ea42652af9a63f62 /INSTALL
parentcef42ac807f4da7ae91be1b6b81b50adb9684975 (diff)
INSTALL: add debug options
also ensure cmake commands are lowercase to be consistent with our code style.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL38
1 files changed, 33 insertions, 5 deletions
diff --git a/INSTALL b/INSTALL
index 7b5d6585..a38a8c00 100644
--- a/INSTALL
+++ b/INSTALL
@@ -65,12 +65,40 @@ tools. Run cmake with the option:
A sample toolchain for a 64-bit mingw build is shown below. Replace
/path/to/win/root with the install prefix for the target environment.
- SET(CMAKE_SYSTEM_NAME Windows)
- SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
- SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
- SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
- SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32 /path/to/win/root )
+ set(CMAKE_SYSTEM_NAME Windows)
+ set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
+ set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
+ set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
+ set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32 /path/to/win/root )
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+
+Debugging Options
+=================
+
+Debug Build Types
+-----------------
+Release build with debugging information:
+ -DCMAKE_BUILD_TYPE=relwithdebinfo
+
+Debug build with optimization except for some code re-ordering optimizations:
+ -DCMAKE_BUILD_TYPE=debug
+
+Debug build with no optimization:
+ -DCMAKE_BUILD_TYPE=debugfull
+
+Release build with debugging and profiling information:
+ -DCMAKE_BUILD_TYPE=profile
+
+
+Address Sanitizer
+-----------------
+Ensure the extra cmake modules are available (may be a separate
+package) then use -DECM_ENABLE_SANITIZERS to specify the santizers. eg
+
+ -DECM_ENABLE_SANITIZERS='address;leak;undefined'
+
+Some options may only be available with clang. Use
+-DCMAKE_CXX_COMPILER=clang++ to build with clang.