How can i build DBus with TSAN?

Dennis Luehring dl.soluz at gmx.net
Sat Nov 19 06:27:30 UTC 2022


i try to test my Qt programs with TSAN and got false positives in Glib
and DBus - Glib builds fine with TSAN
but i don't know how to properbly build DBus with TSAN

currently im building DBus with these steps

git clone https://github.com/freedesktop/dbus.git
cd dbus
git checkout dbus-1.14.4
cd ..
mkdir dbus-build
cd dbus-build
cmake ../dbus -Db_sanitize=thread
-DCMAKE_INSTALL_PREFIX=~/qt6_dev/dbus-install
cmake --build . --parallel 4
cmake --install .

i tried -Db_sanitize=thread or -sanitizer thread but both options are unkown




More information about the dbus mailing list