Trying this again after I had to back it out due to bot failures.
I believe the bot failrues were the result of the interception library getting picked up in places it shouldn't have been. This is fixed by adding the REQUIRES_INTERCEPTION list. Original code review (http://reviews.llvm.org/D14846).
Rather than having to add new "experimental" options each time someone wants to work on bringing a sanitizer to a new platform, this patch makes options for all of them.
The default values for the options are set by the platform checks that would have enabled them, but they can be overridden on or off.
I think you should do the same for "stats" library. It's not a part of sanitizer_common, it uses sanitizer_common. So, this
should be smth. like
and remove adding stats below from "SHOULD_BUILD_COMMON".