blob: efb62fde480a65aeef8e3f10bc511a069b92267c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff -ur llvm-project-apple-stable-20191106/clang/lib/DirectoryWatcher/CMakeLists.txt llvm-project-apple-stable-20191106+iOS/clang/lib/DirectoryWatcher/CMakeLists.txt
--- llvm-project-apple-stable-20191106/clang/lib/DirectoryWatcher/CMakeLists.txt 2019-12-03 19:28:47.000000000 -1000
+++ llvm-project-apple-stable-20191106+iOS/clang/lib/DirectoryWatcher/CMakeLists.txt 2019-12-05 12:38:06.000000000 -1000
@@ -9,7 +9,9 @@
check_include_files("CoreServices/CoreServices.h" HAVE_CORESERVICES)
if(HAVE_CORESERVICES)
list(APPEND DIRECTORY_WATCHER_SOURCES mac/DirectoryWatcher-mac.cpp)
- set(DIRECTORY_WATCHER_LINK_LIBS "-framework CoreServices")
+ set(DIRECTORY_WATCHER_LINK_LIBS "-framework CoreServices -framework CoreFoundation")
+ else()
+ list(APPEND DIRECTORY_WATCHER_SOURCES default/DirectoryWatcher-not-implemented.cpp)
endif()
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
check_include_files("sys/inotify.h" HAVE_INOTIFY)
diff -ur llvm-project-apple-stable-20191106/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp llvm-project-apple-stable-20191106+iOS/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp
--- llvm-project-apple-stable-20191106/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp 2019-12-03 19:28:47.000000000 -1000
+++ llvm-project-apple-stable-20191106+iOS/clang/lib/DirectoryWatcher/mac/DirectoryWatcher-mac.cpp 2019-12-05 12:41:40.000000000 -1000
@@ -14,6 +14,7 @@
#include "llvm/Support/Error.h"
#include "llvm/Support/Path.h"
#include <CoreServices/CoreServices.h>
+#include <FSEvents/FSEvents.h>
using namespace llvm;
using namespace clang;
|