-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #66194 - alexcrichton:update-clang, r=<try>
Update Clang & build MSVC LLVM with it This is a general update of our builders to Clang 9, and then it also attempts to tackle a bit of #66192 by building LLVM for rustc with Clang, not with the system `cl.exe` on MSVC.
- Loading branch information
Showing
7 changed files
with
56 additions
and
75 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
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