From 6ba2c2bf90f23381c1d052acb010cee364bebe8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 5 Nov 2020 00:10:06 +0100 Subject: [PATCH] [lldb] [test/Shell] Simplify -pthread condition Pass -pthread on all systems except for Darwin and Windows. Suggested by Pavel Labath. --- lldb/test/Shell/helper/toolchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/Shell/helper/toolchain.py b/lldb/test/Shell/helper/toolchain.py index cda66b6..9b85da0 100644 --- a/lldb/test/Shell/helper/toolchain.py +++ b/lldb/test/Shell/helper/toolchain.py @@ -116,7 +116,7 @@ def use_support_substitutions(config): sdk_path = lit.util.to_string(out) llvm_config.lit_config.note('using SDKROOT: %r' % sdk_path) host_flags += ['-isysroot', sdk_path] - elif platform.system() in ['FreeBSD', 'NetBSD', 'OpenBSD', 'Linux']: + elif sys.platform != 'win32': host_flags += ['-pthread'] if sys.platform.startswith('netbsd'): -- 2.7.4