diff options
author | Yi Kong <yikong@google.com> | 2017-12-28 23:06:24 +0000 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2017-12-28 23:06:24 +0000 |
commit | d4e71e9ec74d169638080ed2db566810662c5ac6 (patch) | |
tree | 540ac2c50717c58863faf440c381c4fe65f3de94 /compiler-rt | |
parent | 2aae217a9794bd52b0475a6b08f9b0224f0cd737 (diff) | |
download | llvm-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.cc | 5 |
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 { |