summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2019-04-03 18:11:36 +0000
committerDimitry Andric <dimitry@andric.com>2019-04-03 18:11:36 +0000
commit956168c8029b4cc8c1d317f0326a7c1238101cb7 (patch)
tree0ac716b88a04f5ce67dc0d8efc83f03757242a45 /lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py
parent9c3978188939680677e7b2128f7c048812c29f6f (diff)
downloadbcm5719-llvm-956168c8029b4cc8c1d317f0326a7c1238101cb7.tar.gz
bcm5719-llvm-956168c8029b4cc8c1d317f0326a7c1238101cb7.zip
Ensure correct pthread flags and libraries are used
On most platforms, certain compiler and linker flags have to be passed when using pthreads, otherwise linking against libomp.so might fail with undefined references to several pthread functions. Use CMake's `find_package(Threads)` to determine these for standalone builds, or take them (and optionally modify them) from the top-level LLVM cmake files. Also, On FreeBSD, ensure that libomp.so is linked against libm.so, similar to NetBSD. Adjust test cases with hardcoded `-lpthread` flag to use the common build flags, which should now have the required pthread flags. Reviewers: emaste, jlpeyton, krytarowski, mgorny, protze.joachim, Hahnfeld Reviewed By: Hahnfeld Subscribers: AndreyChurbanov, tra, EricWF, Hahnfeld, jfb, jdoerfert, openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D59451 llvm-svn: 357618
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud