forked from OSchip/llvm-project
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:
parent
204f7dc56e
commit
0554d25eb3
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue