[libc++] Improve the detection of whether the blocks runtime is available
authorLouis Dionne <ldionne@apple.com>
Thu, 23 Apr 2020 20:47:52 +0000 (16:47 -0400)
committerLouis Dionne <ldionne@apple.com>
Fri, 24 Apr 2020 11:02:21 +0000 (07:02 -0400)
commitf76c42416cf43b7027f41d6b3bc6ee7e5593a7fe
treeae70fd1eda12424e423fd7aa7c422c30899cdcae
parent53dd72a87aeb13de7f10a6b9b468e1baffbf7773
[libc++] Improve the detection of whether the blocks runtime is available

The runtime for Blocks may not be available even though the Blocks
language extension _is_ available. Instead of potentially failing,
this commit is much more conservative and assumes the runtime for
Blocks is only provided on Apple platforms.

Differential Revision: https://reviews.llvm.org/D78757
libcxx/include/__config
libcxx/include/functional
libcxx/test/libcxx/utilities/function.objects/func.blocks.sh.cpp