Add hints about how to use unl0kr with Valgrind

This commit is contained in:
Johannes Marbach 2023-03-13 21:37:27 +01:00
parent 1bf46979eb
commit 8604098a69

View file

@ -98,6 +98,16 @@ $ sudo ./_build/unl0kr
With meson <0\.55 use `ninja` instead of `meson compile`\. 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 ## Backends
Unl0kr supports multiple LVGL display drivers, referred to as "backends". Unl0kr supports multiple LVGL display drivers, referred to as "backends".