From db74cebc8bc1e64244d17d3fb13ff90008bbce12 Mon Sep 17 00:00:00 2001 From: Pratik Mankawde Date: Wed, 5 Nov 2025 12:49:08 +0000 Subject: [PATCH] added build with sanitizers ins. Signed-off-by: Pratik Mankawde --- BUILD.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BUILD.md b/BUILD.md index f13204ea4c..74ad41a2b5 100644 --- a/BUILD.md +++ b/BUILD.md @@ -360,6 +360,16 @@ tools.build:cxxflags=['-DBOOST_ASIO_DISABLE_CONCEPTS'] conan install .. --output-folder . --build missing --settings build_type=Debug ``` + If you would like to activate `asan+ubsan`(`Address`) or `tsan+ubsan`(`Thread`) for the build, + declare an env. variable as follows and simply use the `incsanitizers` + profile in the `conan install` command. + + ``` + SANITIZERS=Address conan install .. --output-folder . --profile incsanitizers --build missing --settings build_type=Debug + ``` + + Available options for SANITIZERS: `Address` and `Thread` + To build Debug, in the next step, be sure to set `-DCMAKE_BUILD_TYPE=Debug` For a single-configuration generator, e.g. `Unix Makefiles` or `Ninja`,