Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This also ensure that we're using the same clang version for all our major platforms instead of 8.0 on Linux and 7.0 on OSX/Windows.
- Loading branch information
1 parent
50f8aad
commit 1e4c2ae
Showing
5 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp b/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp | ||
index 176d6d6abf3..a6d63bf24b8 100644 | ||
--- a/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp | ||
+++ b/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp | ||
@@ -33,6 +33,13 @@ namespace { | ||
using namespace llvm; | ||
using namespace clang; | ||
|
||
+#define EPOLL_CLOEXEC -1 | ||
+#define IN_CLOEXEC -1 | ||
+#define O_CLOEXEC -1 | ||
+static int epoll_create1(int flags) { return -1; } | ||
+static int inotify_init1(int flags) { return -1; } | ||
+static int pipe2(int *fds, int flags) { return -1; } | ||
+ | ||
/// Pipe for inter-thread synchronization - for epoll-ing on multiple | ||
/// conditions. It is meant for uni-directional 1:1 signalling - specifically: | ||
/// no multiple consumers, no data passing. Thread waiting for signal should |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters