[lldb] [test/Shell] Simplify -pthread condition
authorMichał Górny <mgorny@moritz.systems>
Wed, 4 Nov 2020 23:10:06 +0000 (00:10 +0100)
committerMichał Górny <mgorny@moritz.systems>
Thu, 5 Nov 2020 16:49:20 +0000 (17:49 +0100)
Pass -pthread on all systems except for Darwin and Windows.
Suggested by Pavel Labath.

lldb/test/Shell/helper/toolchain.py

index cda66b6..9b85da0 100644 (file)
@@ -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'):