1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/examples
Eric Fiselier db10580e9b [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
..
BrainF BrainF example: fixing output buffering issue 2017-01-17 13:27:28 +00:00
ExceptionDemo ExceptionDemo: remove some undefined behaviour 2016-11-20 02:36:38 +00:00
Fibonacci [MCJIT] Update MCJIT and get the fibonacci example working again. 2016-06-11 05:47:04 +00:00
HowToUseJIT Prune unused libdeps. 2016-12-08 15:28:02 +00:00
Kaleidoscope Use print() instead of dump() in code 2017-01-28 02:47:46 +00:00
ModuleMaker Fix examples files to reflect header split in r286566. 2016-11-11 06:02:04 +00:00
OCaml-Kaleidoscope
ParallelJIT [CMake] Fix pthread handling for out-of-tree builds 2017-02-10 01:59:20 +00:00
CMakeLists.txt
LLVMBuild.txt