[cfe-dev] Using the AddressSanitizer under Windows

Gaier, Bjoern via cfe-dev cfe-dev at lists.llvm.org
Mon Jan 28 23:37:47 PST 2019


Hello Stephen,

Adding the libraries:
clang_rt.asan_dynamic-x86_64.lib
clang_rt.asan_dynamic_runtime_thunk-x86_64.lib

fixed my problem! Thank you! But now I have to use the "clang_rt.asan_dynamic-x86_64.dll" - is there a way to use static libraries rather than the DLL?

Kind greetings
Björn

-----Original Message-----
From: cfe-dev <cfe-dev-bounces at lists.llvm.org> On Behalf Of Stephen Kelly via cfe-dev
Sent: Samstag, 26. Januar 2019 17:25
To: cfe-dev at lists.llvm.org
Subject: Re: [cfe-dev] Using the AddressSanitizer under Windows

On 24/01/2019 07:13, Gaier, Bjoern via cfe-dev wrote:
> Because I'm on a Windows7 x64 machine I then linked
> "clang_rt.asan-x86_64.lib" to my project.

I recently started to try to use asan on Windows too.

You need to use different asan libraries depending on whether which windows runtime you use etc. You can see which ones clang uses under which flags if you run it with `-v`.

I pasted some cmake code to use asan here:

https://bugs.llvm.org/show_bug.cgi?id=40320

Thanks,

Stephen.

_______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Als GmbH eingetragen im Handelsregister Bad Homburg v.d.H. HRB 9816, USt.ID-Nr. DE 114 165 789 Geschäftsführer: Dr. Hiroshi Nakamura, Dr. Robert Plank, Markus Bode, Heiko Lampert, Takashi Nagano, Takeshi Fukushima. Junichi Tajika


More information about the cfe-dev mailing list