• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Enabling AddressSanitizer from Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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).


-- Jean-Daniel




 _______________________________________________
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

References: 
 >Enabling AddressSanitizer from Xcode (From: Jeff Smith <email@hidden>)
 >Re: Enabling AddressSanitizer from Xcode (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Enabling AddressSanitizer from Xcode (From: Marshall Clow <email@hidden>)

  • Prev by Date: Re: Enabling AddressSanitizer from Xcode
  • Next by Date: Re: Enabling AddressSanitizer from Xcode
  • Previous by thread: Re: Enabling AddressSanitizer from Xcode
  • Next by thread: Re: Enabling AddressSanitizer from Xcode
  • Index(es):
    • Date
    • Thread