Disable KMP_CANCEL_THREADS on Android

Summary:
Android does not have pthread_cancel.  Disable KMP_CANCEL_THREADS if
__ANDROID__ is defined.

Subscribers: tberghammer, srhines, openmp-commits, danalbert

Differential Revision: https://reviews.llvm.org/D23029

llvm-svn: 277618
This commit is contained in:
Pirama Arumuga Nainar 2016-08-03 18:08:57 +00:00
parent 204f7dc56e
commit 0554d25eb3
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@
#define KMP_CANCEL_THREADS
#define KMP_THREAD_ATTR
// Android does not have pthread_cancel. Undefine KMP_CANCEL_THREADS if being
// built on Android
#if defined(__ANDROID__)
#undef KMP_CANCEL_THREADS
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>