StephanTLavavej / mingw-distro

MinGW distro build scripts.
492 stars 55 forks source link

How to use mingw-distro with fsanitize=address and -fsanitize=undefined? #84

Closed CaptainDredge closed 2 years ago

CaptainDredge commented 4 years ago

I got following error while using above mentioned flags c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lasan c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lubsan collect2.exe: error: ld returned 1 exit status

StephanTLavavej commented 2 years ago

The sanitizers aren't supported by MinGW-w64 yet, see https://www.mingw-w64.org/contribute/#sanitizers-asan-tsan-usan .

If they add support, and I can enable it in the distro without too much effort, I'll do so.