Skip to content

Commit fbb4878

Browse files
authored
Merge pull request #11617 from swiftlang/lldb/libcxx-test-to-stable-21.x
🍒[lldb][test] Don't run libc++ API tests without a locally built libc++
2 parents d7be913 + ea65d7a commit fbb4878

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,10 @@ def canRunLibcxxTests():
786786
return True, "libc++ always present"
787787

788788
if platform == "linux":
789+
if not configuration.libcxx_include_dir or not configuration.libcxx_library_dir:
790+
return False, "API tests require a locally built libc++."
791+
792+
# Make sure -stdlib=libc++ works since that's how the tests will be built.
789793
with tempfile.NamedTemporaryFile() as f:
790794
cmd = [configuration.compiler, "-xc++", "-stdlib=libc++", "-o", f.name, "-"]
791795
p = subprocess.Popen(

0 commit comments

Comments
 (0)