diff options
author | Julian Lettner <julian.lettner@apple.com> | 2020-08-14 13:42:50 -0700 |
---|---|---|
committer | Julian Lettner <julian.lettner@apple.com> | 2020-08-18 18:34:14 -0700 |
commit | 40ae296bc39a2780ec4cd99edd87cce35585b9ad (patch) | |
tree | 409071b6f8317ef004825e98bdf64f901d9acd65 /llvm/lib/Support/TargetParser.cpp | |
parent | 686fe293e6c5fd51fa0a3c86a43c2d9a652d53b1 (diff) | |
download | llvm-40ae296bc39a2780ec4cd99edd87cce35585b9ad.zip llvm-40ae296bc39a2780ec4cd99edd87cce35585b9ad.tar.gz llvm-40ae296bc39a2780ec4cd99edd87cce35585b9ad.tar.bz2 |
[TSan][libdispatch] Guard test execution on old platforms
`dispatch_async_and_wait()` was introduced in macOS 10.14. Let's
forward declare it to ensure we can compile the test with older SDKs and
guard execution by checking if the symbol is available. (We can't use
`__builtin_available()`, because that itself requires a higher minimum
deployment target.) We also need to specify the `-undefined
dynamic_lookup` compiler flag.
Differential Revision: https://reviews.llvm.org/D85995
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions