[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

llvm-svn: 347412
This commit is contained in:
Stella Stamenova 2018-11-21 20:16:06 +00:00
parent e050275afb
commit 839a0cb8e0
1 changed files with 1 additions and 1 deletions

View 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']