summaryrefslogtreecommitdiffstats
path: root/llvm/examples/ParallelJIT
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-03-01 15:54:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-03-01 15:54:40 +0000
commit5cd721ae120eec72b795105830c76a087cd32dca (patch)
treeea98b272b3df007789383f99f7ca62eebdbb3329 /llvm/examples/ParallelJIT
parenta029b79e1a71b46b3e8d0ace236a2d935643cf7b (diff)
downloadbcm5719-llvm-5cd721ae120eec72b795105830c76a087cd32dca.tar.gz
bcm5719-llvm-5cd721ae120eec72b795105830c76a087cd32dca.zip
Refactor duplicated code for linking with pthread.
llvm-svn: 262344
Diffstat (limited to 'llvm/examples/ParallelJIT')
-rw-r--r--llvm/examples/ParallelJIT/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/examples/ParallelJIT/CMakeLists.txt b/llvm/examples/ParallelJIT/CMakeLists.txt
index 07c0a085b91..e85b470f503 100644
--- a/llvm/examples/ParallelJIT/CMakeLists.txt
+++ b/llvm/examples/ParallelJIT/CMakeLists.txt
@@ -11,6 +11,4 @@ add_llvm_example(ParallelJIT
ParallelJIT.cpp
)
-if(HAVE_LIBPTHREAD)
- target_link_libraries(ParallelJIT pthread)
-endif(HAVE_LIBPTHREAD)
+target_link_libraries(ParallelJIT ${PTHREAD_LIB})
OpenPOWER on IntegriCloud