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.
Paths
| Differential D15624
Add iOS/watchOS/tvOS support for ASan (clang part) ClosedPublic Authored by zaks.anna on Dec 17 2015, 12:38 PM.
Details Summary 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 Timelinezaks.anna updated this object. This revision is now accepted and ready to land.Dec 17 2015, 12:40 PM
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
Closed by commit rL259453: [asan] Add iOS support for Address Sanitizer (authored by zaks). · Explain WhyFeb 1 2016, 6:08 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 45720 lib/Driver/ToolChains.h
lib/Driver/ToolChains.cpp
test/Driver/darwin-sanitizer-ld.c
test/Driver/fsanitize.c
|
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.