cmake_template icon indicating copy to clipboard operation
cmake_template copied to clipboard

Using MSVC debug-builds fail due to MDd linkage

Open psyinf opened this issue 2 years ago • 2 comments

Building the MSVC debug targets currently fails due to unsupported mix of debug runtime and 'fsanitize=address' option error : invalid argument '-MDd' not allowed with '-fsanitize=address' [clang-diagnostic-error] note: AddressSanitizer doesn't support linking with debug runtime libraries yet Error while processing E:\develop\projects\ad_astra\src\sample_library\sample_library.cpp.

psyinf avatar Aug 15 '23 19:08 psyinf

I am struggling with this as well and I can't figure out why. According to Microsoft ASAN support seems to be fully enabled for /MDd reading here: https://devblogs.microsoft.com/cppblog/msvc-address-sanitizer-one-dll-for-all-runtime-configurations/. Has anyone had success solving this issue?

Bentebent avatar Nov 22 '23 09:11 Bentebent

I just encountered this error as well while trying to build my newly created project for the first time. Will post an update if I figure out a workaround.

christiandaley avatar Jan 20 '24 23:01 christiandaley