[DirectoryWatcher] Do not use FSEvents on non-macOS platforms
authorVedant Kumar <vsk@apple.com>
Thu, 23 Apr 2020 17:20:01 +0000 (10:20 -0700)
committerVedant Kumar <vsk@apple.com>
Thu, 23 Apr 2020 17:22:28 +0000 (10:22 -0700)
commitcfb4f8c5fbc6fd8ad06bcfc6f91926b6d55d3766
tree3e3e8d64cf4f3609c9506bc024bf615cc2ac2903
parent517f0f14bfa8e1ef4caa4ed08c70c644b4116a8f
[DirectoryWatcher] Do not use FSEvents on non-macOS platforms

The FSEvents APIs are available on iOS6+: however, the DirectoryWatcher
code isn't wired up to really use FSEvents on embedded platforms.

I've duplicated code from DirectoryWatcher-not-implemented.cpp here and
used TargetConditionals instead of adding cmakery to check try_compile;
I couldn't get that to work properly.
clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp