[Lldb-commits] [PATCH] D54808: [lit] Add pthread to the compilation of the tests on Linux
Stella Stamenova via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 21 12:10:00 PST 2018
stella.stamenova created this revision.
stella.stamenova added reviewers: labath, zturner, asmith.
Herald added subscribers: lldb-commits, jfb.
Right now only some platforms add pthread to the compilation, however, at least one of the tests requires the pthread library on Linux as well. Since the library is available, this change adds it by default on Linux.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D54808
Files:
lit/helper/toolchain.py
Index: lit/helper/toolchain.py
===================================================================
--- lit/helper/toolchain.py
+++ lit/helper/toolchain.py
@@ -78,7 +78,7 @@
sdk_path = lit.util.to_string(out)
lit_config.note('using SDKROOT: %r' % sdk_path)
flags = ['-isysroot', sdk_path]
- elif platform.system() in ['OpenBSD']:
+ elif platform.system() in ['OpenBSD', 'Linux']:
flags = ['-pthread']
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54808.174962.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20181121/829cf4a3/attachment.bin>
More information about the lldb-commits
mailing list