[Lldb-commits] [lldb] r347412 - [lit] Add pthread to the compilation of the tests on Linux

Stella Stamenova via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 21 12:16:06 PST 2018


Author: stella.stamenova
Date: Wed Nov 21 12:16:06 2018
New Revision: 347412

URL: http://llvm.org/viewvc/llvm-project?rev=347412&view=rev
Log:
[lit] Add pthread to the compilation of the tests on Linux

Summary: 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.

Reviewers: labath, zturner, asmith

Subscribers: stella.stamenova, jfb, lldb-commits

Differential Revision: https://reviews.llvm.org/D54808

Modified:
    lldb/trunk/lit/helper/toolchain.py

Modified: lldb/trunk/lit/helper/toolchain.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/helper/toolchain.py?rev=347412&r1=347411&r2=347412&view=diff
==============================================================================
--- lldb/trunk/lit/helper/toolchain.py (original)
+++ lldb/trunk/lit/helper/toolchain.py Wed Nov 21 12:16:06 2018
@@ -78,7 +78,7 @@ def use_support_substitutions(config):
             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']
 
 




More information about the lldb-commits mailing list