From 8604098a69ffe8072298fa159e23eaac2a07eb76 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Mon, 13 Mar 2023 21:37:27 +0100 Subject: [PATCH] Add hints about how to use unl0kr with Valgrind --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5d95493..f9891b0 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,16 @@ $ sudo ./_build/unl0kr With meson <0\.55 use `ninja` instead of `meson compile`\. +## Valgrind + +> Using C without Valgrind is like skydiving without a parachute. + +To be able to use Valgrind, add `default_options: ['optimization=g']` in the `project` section of `meson.build` and rebuild. Afterwards you can run the application with Valgrind's leaks check enabled via + +``` +sudo valgrind --leak-check=yes ./_build/unl0kr +``` + ## Backends Unl0kr supports multiple LVGL display drivers, referred to as "backends".