[compiler-rt][darwin] check for strcmp to test interceptors instead of pthread_create
authorEmily Shi <code@emi.sh>
Tue, 11 Jan 2022 03:28:08 +0000 (19:28 -0800)
committerEmily Shi <code@emi.sh>
Thu, 13 Jan 2022 00:17:26 +0000 (16:17 -0800)
commit1e36bd8516f23e2eaf9c3c6c2005a8cf66070896
treef3c58af45c7faf29ebc3b9b9cfbb1f857f25b804
parent32d5634b1a2d9ab8bb9ab3e4519cc70681b8c1c4
[compiler-rt][darwin] check for strcmp to test interceptors instead of pthread_create

If `pthread_create` is not available on a platform, we won't be able to check if interceptors work. Use `strcmp` instead.

Reviewed By: yln

Differential Revision: https://reviews.llvm.org/D116989
compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp