diff options
author | Stella Stamenova <stilis@microsoft.com> | 2018-11-21 20:16:06 +0000 |
---|---|---|
committer | Stella Stamenova <stilis@microsoft.com> | 2018-11-21 20:16:06 +0000 |
commit | e037b673a61d84c325fd5cc6c9163fbcc2ff002c (patch) | |
tree | 2f5a3b186c924bef6561e2e5ace19d98e1977410 | |
parent | 2ae14c637f1003506676ab1d27cae9aa1022e7d4 (diff) | |
download | lldb-e037b673a61d84c325fd5cc6c9163fbcc2ff002c.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@347412 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lit/helper/toolchain.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lit/helper/toolchain.py b/lit/helper/toolchain.py index ce22c2518..c0ea7eda1 100644 --- a/lit/helper/toolchain.py +++ b/lit/helper/toolchain.py @@ -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'] |