bitpit icon indicating copy to clipboard operation
bitpit copied to clipboard

cmake: activate address sanitizer for MSVC compiler

Open roccoarpa opened this issue 2 years ago • 0 comments

Adding compliant option to activate address sanitizer also with the MSVC compiler. The only difference with respect to the current solution in main CMakeLists.txt should be to use the compiler flag /fsanitize instead of gnu/LLVM style --fsanitize

More information here https://docs.microsoft.com/en-us/cpp/sanitizers/asan?view=msvc-170

roccoarpa avatar Jun 08 '22 09:06 roccoarpa