aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2017-12-28 23:06:24 +0000
committerYi Kong <yikong@google.com>2017-12-28 23:06:24 +0000
commitd4e71e9ec74d169638080ed2db566810662c5ac6 (patch)
tree540ac2c50717c58863faf440c381c4fe65f3de94 /compiler-rt
parent2aae217a9794bd52b0475a6b08f9b0224f0cd737 (diff)
downloadllvm-d4e71e9ec74d169638080ed2db566810662c5ac6.zip
llvm-d4e71e9ec74d169638080ed2db566810662c5ac6.tar.gz
llvm-d4e71e9ec74d169638080ed2db566810662c5ac6.tar.bz2
Ignore the DISPATCH_NOESCAPE if not defined
This macro is only defined after XCode 8, causing build breakage for build systems with prior versions. Ignore DISPATCH_NOESCAPE if not defined. Differential Revision: https://reviews.llvm.org/D41601 llvm-svn: 321543
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_libdispatch_mac.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_libdispatch_mac.cc b/compiler-rt/lib/tsan/rtl/tsan_libdispatch_mac.cc
index eb22e4b..d6c1ca6 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_libdispatch_mac.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_libdispatch_mac.cc
@@ -25,6 +25,11 @@
#include <dispatch/dispatch.h>
#include <pthread.h>
+// DISPATCH_NOESCAPE is not defined prior to XCode 8.
+#ifndef DISPATCH_NOESCAPE
+#define DISPATCH_NOESCAPE
+#endif
+
typedef long long_t; // NOLINT
namespace __tsan {