forked from OSchip/llvm-project
[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:
parent
e050275afb
commit
839a0cb8e0
|
@ -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']
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue