From: Alexander Mikhalitsyn Date: Tue, 6 Dec 2022 17:46:07 +0000 (+0100) Subject: README: how to build with sanitizers X-Git-Tag: v6.0.0~29^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ef53a2871948fde73e18c468a9454fc0a4b0f108;hp=7a109f20df5f3e09cc7e2d03a8452129b8b8ca87;p=mirror_lxcfs.git README: how to build with sanitizers Signed-off-by: Alexander Mikhalitsyn --- diff --git a/README.md b/README.md index b001faa..722948f 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,12 @@ versions: meson compile -C build/ sudo meson install -C build/ +To build with sanitizers you have to specify `-Db_sanitize=...` option to `meson setup`. +For example, to enable ASAN and UBSAN: + + meson setup -Dinit-script=systemd --prefix=/usr build/ -Db_sanitize=address,undefined + meson compile -C build/ + ## Usage The recommended command to run lxcfs is: