[Lldb-commits] [lldb] 6ba2c2b - [lldb] [test/Shell] Simplify -pthread condition

Michał Górny via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 5 08:50:30 PST 2020


Author: Michał Górny
Date: 2020-11-05T17:49:20+01:00
New Revision: 6ba2c2bf90f23381c1d052acb010cee364bebe8e

URL: https://github.com/llvm/llvm-project/commit/6ba2c2bf90f23381c1d052acb010cee364bebe8e
DIFF: https://github.com/llvm/llvm-project/commit/6ba2c2bf90f23381c1d052acb010cee364bebe8e.diff

LOG: [lldb] [test/Shell] Simplify -pthread condition

Pass -pthread on all systems except for Darwin and Windows.
Suggested by Pavel Labath.

Added: 
    

Modified: 
    lldb/test/Shell/helper/toolchain.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/helper/toolchain.py b/lldb/test/Shell/helper/toolchain.py
index cda66b652961..9b85da01f822 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'):


        


More information about the lldb-commits mailing list