Re: Enabling AddressSanitizer from Xcode
Re: Enabling AddressSanitizer from Xcode
- Subject: Re: Enabling AddressSanitizer from Xcode
- From: Jack Howarth <email@hidden>
- Date: Thu, 14 Mar 2013 10:01:56 -0400
On Thu, Mar 14, 2013 at 06:41:59AM -0700, Marshall Clow wrote:
> On Mar 14, 2013, at 1:58 AM, Jean-Daniel Dupas <email@hidden> wrote:
> > Le 14 mars 2013 à 06:03, Jeff Smith <email@hidden> a écrit :
> >>
> >> Since AddressSanitizer is part of LLVM/Clang, is it possible to enable it from Xcode's Build Settings?
> >>
> >>
> >> I've tried this but it doesn't work…
> >>
> > Please, define "is doesn't work".
> >
> > FWIW, ASAN was developed mainly for linux and I'm not sure the OS X port is complete yet.
> >
> > And as far as I known, asan runtime libraries are not distributed with Xcode 4.6, so if you want to experiment with asan, you will have to use your own version of clang.
>
> That's too bad, since using your own version of clang in Xcode is surprisingly hard.
>
> -- Marshall
Marshall,
FYI, you will want to use llvm-3.3. The llvm-3.2 release used a hackish mach_override approach for
interception which has been replaced with the mac function interposition approach for the llvm 3.3
release. The only downside to this change is that static linkage with libasan isn't available on
darwin since the mac function interposition approach requires libasan to be a shared library.
Jack
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden