I'd like to test data races in C++ on windows 10(64 bit), but it seems that Visual C++ doesn't support it yet.
So, I installed Cygwin and got g++ 11.2.0, tried compiling my C++ code with -fsanitize=thread -fPIE -pie -g
, but it failed with -ltsan not found
error.
The doc doesn't say anything about Windows. Is it even possible to use Thread Sanitizer on Windows? If so, How?
Just use WSL and use thread sanitizer on it.