commit | 62e6b0807de9faec2551e5aca40c9cb5f881d2c1 | [log] [tgz] |
---|---|---|
author | Tom Stellard <tstellar@redhat.com> | Fri May 19 01:55:37 2017 +0000 |
committer | Tom Stellard <tstellar@redhat.com> | Fri May 19 01:55:37 2017 +0000 |
tree | 375c742a0dae1168c1dae5444eae138ba9a78051 | |
parent | ada5756959e1356d1911702872ba625b8ee67210 [diff] |
Merging r294690: ------------------------------------------------------------------------ r294690 | ericwf | 2017-02-09 20:59:20 -0500 (Thu, 09 Feb 2017) | 13 lines [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`. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/lld/branches/release_40@303400 91177308-0d34-0410-b5e6-96231b3b80d8
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.