Re: Enabling AddressSanitizer from Xcode
Re: Enabling AddressSanitizer from Xcode
- Subject: Re: Enabling AddressSanitizer from Xcode
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 14 Mar 2013 14:54:39 +0100
Le 14 mars 2013 à 14:41, Marshall Clow < email@hidden> a écrit : 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
I find it rather straightforward. Define a "CC" User Defined build setting that points on you clang binary.
Especially with Xcode 4.6 and the current clang version as they have quite compatible drivers (this may not always be the case, as sometimes clang options are removed/renamed and break the Xcode expectation).
|
_______________________________________________
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