Change the clang driver to accept ASan on iOS/watchOS/tvOS.
This change along with the corresponding changes in llvm and compiler-rt complete ASan support for iOS/watchOS/tvOS.
Differential D15624
Add iOS/watchOS/tvOS support for ASan (clang part) zaks.anna on Dec 17 2015, 12:38 PM. Authored by
Details Change the clang driver to accept ASan on iOS/watchOS/tvOS. This change along with the corresponding changes in llvm and compiler-rt complete ASan support for iOS/watchOS/tvOS.
Diff Detail Event Timeline
Comment Actions Sorry, lost track of this.
Comment Actions I've introduced the helper function. Looks like addProfileRTLibs might be able to use it in the future (after support for autoconf is dropped) as well. Comment Actions Thanks.
Comment Actions Thanks for spotting the bug! The bug is fixed and the tests are added in this revision. Comment Actions LGTM
|
Fun fact: if TargetPlatform is TvOSSimulator, this function will return iossim because isTargetIOSSimulator will return true.
I suggest to just switch on the value of TargetPlatform instead of using these helpers.