hanchenye-llvm-project/clang-tools-extra
Eric Fiselier 87c87f4c30 [CMake] Fix pthread handling for out-of-tree builds
LLVM defines `PTHREAD_LIB` which is used by AddLLVM.cmake and various projects
to correctly link the threading library when needed. Unfortunately
`PTHREAD_LIB` is defined by LLVM's `config-ix.cmake` file which isn't installed
and therefore can't be used when configuring out-of-tree builds. This causes
such builds to fail since `pthread` isn't being correctly linked.

This patch attempts to fix that problem by renaming and exporting
`LLVM_PTHREAD_LIB` as part of`LLVMConfig.cmake`. I renamed `PTHREAD_LIB`
because It seemed likely to cause collisions with downstream users of
`LLVMConfig.cmake`.

llvm-svn: 294690
2017-02-10 01:59:20 +00:00
..
change-namespace [change-namespace] trying to fix build bot failure caused by r293909. 2017-02-02 19:46:12 +00:00
clang-apply-replacements Update tools to use new getStyle API 2017-01-17 00:13:32 +00:00
clang-move Remove dead code. 2017-01-17 13:46:59 +00:00
clang-query modernize-use-auto NFC fixes 2016-12-14 15:29:23 +00:00
clang-rename Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes (NFC). 2016-11-29 18:24:01 +00:00
clang-reorder-fields
clang-tidy [clang-tidy] Add -quiet option to suppress extra output 2017-02-09 18:32:02 +00:00
clang-tidy-vs Remove 'misc-pointer-and-integral-operation' clang-tidy check. The only cases 2016-10-21 21:50:28 +00:00
clangd [clangd] Strip file:// from the URI when calling formatting. 2017-02-07 16:10:17 +00:00
docs Adds the commandline need to run clang-tidy tests. 2017-02-10 01:48:43 +00:00
include-fixer [CMake] Fix pthread handling for out-of-tree builds 2017-02-10 01:59:20 +00:00
modularize Fixes for Clang API change 2017-01-06 01:09:06 +00:00
pp-trace modernize-use-auto NFC fixes 2016-12-14 15:29:23 +00:00
test [clang-tidy] Add -quiet option to suppress extra output 2017-02-09 18:32:02 +00:00
tool-template [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
unittests [change-namespace] fix unscoped enum constant references. 2017-02-02 17:40:38 +00:00
.arcconfig
.gitignore
CMakeLists.txt Add a prototype for clangd 2017-02-07 10:28:20 +00:00
CODE_OWNERS.TXT
LICENSE.TXT
README.txt

README.txt

//===----------------------------------------------------------------------===//
// Clang Tools repository
//===----------------------------------------------------------------------===//

Welcome to the repository of extra Clang Tools.  This repository holds tools
that are developed as part of the LLVM compiler infrastructure project and the
Clang frontend.  These tools are kept in a separate "extra" repository to
allow lighter weight checkouts of the core Clang codebase.

This repository is only intended to be checked out inside of a full LLVM+Clang
tree, and in the 'tools/extra' subdirectory of the Clang checkout.

All discussion regarding Clang, Clang-based tools, and code in this repository
should be held using the standard Clang mailing lists:
  http://lists.llvm.org/mailman/listinfo/cfe-dev

Code review for this tree should take place on the standard Clang patch and
commit lists:
  http://lists.llvm.org/mailman/listinfo/cfe-commits

If you find a bug in these tools, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/