MSBuild error MSB8059
MSB8059:
-fsanitize=address
(Enable Address Sanitizer) is incompatible with option 'option-value'.
This error occurs when you use an option that's incompatible with /fsanitize=address
.
These options and features are incompatible with /fsanitize=address
and should be disabled or avoided:
- The
/RTC
options are incompatible with AddressSanitizer and should be disabled. /incremental
(Incremental linking) is unsupported, and should be disabled.- Edit-and-Continue is unsupported, and should be disabled.
- Coroutines are incompatible with AddressSanitizer, and resumable functions are exempt from instrumentation.
/openmp
(OpenMP support) is unsupported, and should be disabled./clr
(Managed C++) is unsupported, and should be disabled.- C++ AMP is unsupported, and should be disabled.
- Universal Windows Platform (UWP) applications are unsupported.
- Special case list files are unsupported.
To resolve this issue, remove the incompatible options from the build instructions for the instrumented code.