Skip to content

Commit

Permalink
[lldb] [test/Shell] Simplify -pthread condition
Browse files Browse the repository at this point in the history
Pass -pthread on all systems except for Darwin and Windows.
Suggested by Pavel Labath.
  • Loading branch information
mgorny committed Nov 5, 2020
1 parent 15694fd commit 6ba2c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/test/Shell/helper/toolchain.py
Expand Up @@ -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'):
Expand Down

0 comments on commit 6ba2c2b

Please sign in to comment.