Skip to content

Commit 786b6db

Browse files
committed
[lldb][dotest] Add #include <algorithm> to libc++ detection
Summary: Speculative fix after 34ef51b broke the lldb buildbot on libc++ tests. Reviewers: echristo, EricWF Subscribers: ldionne, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D71376
1 parent e0e07a7 commit 786b6db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/packages/Python/lldbsuite/test/dotest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ def canRunLibcxxTests():
856856
with tempfile.NamedTemporaryFile() as f:
857857
cmd = [configuration.compiler, "-xc++", "-stdlib=libc++", "-o", f.name, "-"]
858858
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
859-
_, stderr = p.communicate("int main() {}")
859+
_, stderr = p.communicate("#include <algorithm>\nint main() {}")
860860
if not p.returncode:
861861
return True, "Compiling with -stdlib=libc++ works"
862862
return False, "Compiling with -stdlib=libc++ fails with the error: %s" % stderr

0 commit comments

Comments
 (0)