[Lldb-commits] [PATCH] D71376: [lldb][dotest] Add `#include <algorithm>` to libc++ detection

Jordan Rupprecht via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 11 14:10:35 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rG786b6db8e6fd: [lldb][dotest] Add `#include <algorithm>` to libc++ detection (authored by rupprecht).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71376/new/

https://reviews.llvm.org/D71376

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


Index: lldb/packages/Python/lldbsuite/test/dotest.py
===================================================================
--- lldb/packages/Python/lldbsuite/test/dotest.py
+++ lldb/packages/Python/lldbsuite/test/dotest.py
@@ -856,7 +856,7 @@
         with tempfile.NamedTemporaryFile() as f:
             cmd = [configuration.compiler, "-xc++", "-stdlib=libc++", "-o", f.name, "-"]
             p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
-            _, stderr = p.communicate("int main() {}")
+            _, stderr = p.communicate("#include <algorithm>\nint main() {}")
             if not p.returncode:
                 return True, "Compiling with -stdlib=libc++ works"
             return False, "Compiling with -stdlib=libc++ fails with the error: %s" % stderr


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71376.233447.patch
Type: text/x-patch
Size: 845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191211/e3fc8710/attachment.bin>


More information about the lldb-commits mailing list