llvm-project/lld/COFF
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
..
CMakeLists.txt [CMake] Fix pthread handling for out-of-tree builds 2017-02-10 01:59:20 +00:00
Chunks.cpp COFF: include relocation type in unsupported relocation message 2017-01-13 22:05:22 +00:00
Chunks.h COFF: Change the /lldmap output format to be more like the ELF linker. 2017-01-14 03:14:46 +00:00
Config.h [COFF] added support for /lldsavetemps 2017-02-08 18:36:41 +00:00
DLL.cpp COFF: New symbol table design. 2016-12-09 21:55:24 +00:00
DLL.h Make these headers as being c++. 2015-08-14 14:12:54 +00:00
Driver.cpp [COFF] added support for /lldsavetemps 2017-02-08 18:36:41 +00:00
Driver.h Add an option to use the MSVC linker to link LTO-generated object files. 2017-02-06 20:47:55 +00:00
DriverUtils.cpp Add an option to use the MSVC linker to link LTO-generated object files. 2017-02-06 20:47:55 +00:00
Error.cpp COFF: add error() and warn() to Error.{cpp,h} 2017-01-17 19:07:42 +00:00
Error.h COFF: add error() and warn() to Error.{cpp,h} 2017-01-17 19:07:42 +00:00
ICF.cpp COFF: New symbol table design. 2016-12-09 21:55:24 +00:00
InputFiles.cpp refactor COFF linker to use new LTO API 2017-02-02 23:58:14 +00:00
InputFiles.h refactor COFF linker to use new LTO API 2017-02-02 23:58:14 +00:00
LTO.cpp [COFF] added support for /lldsavetemps 2017-02-08 18:36:41 +00:00
LTO.h Add an option to use the MSVC linker to link LTO-generated object files. 2017-02-06 20:47:55 +00:00
Librarian.cpp Remove unnecessary `llvm::`. 2016-12-08 20:50:47 +00:00
MapFile.cpp Print alignment in decimal instead of hexadecimal. 2017-01-31 20:42:34 +00:00
MapFile.h COFF: Change the /lldmap output format to be more like the ELF linker. 2017-01-14 03:14:46 +00:00
MarkLive.cpp COFF: New symbol table design. 2016-12-09 21:55:24 +00:00
Memory.h Remove lld/Support/Memory.h. 2016-12-18 14:06:06 +00:00
ModuleDef.cpp Remove lld/Support/Memory.h. 2016-12-18 14:06:06 +00:00
Options.td [COFF] added support for /lldsavetemps 2017-02-08 18:36:41 +00:00
PDB.cpp COFF: prevent nullptr dereference 2017-02-07 04:28:02 +00:00
PDB.h COFF: tie the execute and the PDB together 2017-01-04 17:56:54 +00:00
README.md Update the documents of the new LLD. 2016-03-12 06:06:40 +00:00
Strings.cpp Fix Windows buildbots. 2016-12-07 23:24:32 +00:00
Strings.h COFF: Define overloaded toString functions. 2016-12-07 23:17:02 +00:00
SymbolTable.cpp Add an option to use the MSVC linker to link LTO-generated object files. 2017-02-06 20:47:55 +00:00
SymbolTable.h Add an option to use the MSVC linker to link LTO-generated object files. 2017-02-06 20:47:55 +00:00
Symbols.cpp refactor COFF linker to use new LTO API 2017-02-02 23:58:14 +00:00
Symbols.h fix nullptr dereference in COFF/Symbol.h 2017-02-03 23:05:17 +00:00
Writer.cpp COFF: prevent nullptr dereference 2017-02-07 04:28:02 +00:00
Writer.h COFF: Change the /lldmap output format to be more like the ELF linker. 2017-01-14 03:14:46 +00:00

README.md

See docs/NewLLD.rst