[PATCH] D42742: [clangd] Use pthread instead of thread_local to support more runtimes.
Mike Lothian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 01:59:39 PST 2018
FireBurn added a comment.
This breaks compilation for me on Gentoo's clang-9999.ebuild
The following patch fixes things for me
commit a4c071b16bbbc84bbb960000d90b51bed8a12127 (HEAD -> master)
Author: Mike Lothian <mike at fireburn.co.uk>
Date: Tue Feb 6 09:55:41 2018 +0000
[clangd] Fix include to use Clang's config.h
This fixes:
[clangd] Use pthread instead of thread_local to support more runtimes.
diff --git a/clangd/Context.cpp b/clangd/Context.cpp
index 23006778..aed832f4 100644
--- a/clangd/Context.cpp
+++ b/clangd/Context.cpp
@@ -8,7 +8,7 @@
//===---------------------------------------------------------------------===//
#include "Context.h"
-#include "llvm/Config/config.h"
+#include "clang/Config/config.h"
#include <cassert>
// The thread-local Context is scoped in a function to avoid init-order issues.
Repository:
rL LLVM
https://reviews.llvm.org/D42742
More information about the llvm-commits
mailing list