[lit] Add pthread to the compilation of the tests on Linux
authorStella Stamenova <stilis@microsoft.com>
Wed, 21 Nov 2018 20:16:06 +0000 (20:16 +0000)
committerStella Stamenova <stilis@microsoft.com>
Wed, 21 Nov 2018 20:16:06 +0000 (20:16 +0000)
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

llvm-svn: 347412

lldb/lit/helper/toolchain.py

index ce22c25..c0ea7ed 100644 (file)
@@ -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']