https://bugs.kde.org/show_bug.cgi?id=507599

--- Comment #10 from Waqar Ahmed <[email protected]> ---
The HOWTO is here: https://kate-editor.org/build-it/

But this needs small modifications so that we have sanitizer support.
Sanitizers, particularly address sanitizer is a way to detect memory bugs in
the code. I will list the steps below that you need to follow from the guide
above:

1. Install kdesrc-build, do this as is.
2. Configuring kdesrc-build
    2.1. Create the ~/.config/kdesrc-buildrc file as is
    2.2 Then replace the line with cmake-options with the following line:
    cmake-options -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
-DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer"
-DECM_ENABLE_SANITIZERS="address;leak" -DCMAKE_BUILD_TYPE=RelWithDebInfo
3. Install needed dependencies (optional). You will probably need this step
4. Follow the rest of the guide as is.

Questions are welcome.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to