Skip to content

Conversation

@kastiglione
Copy link
Contributor

@kastiglione kastiglione commented Jul 30, 2025

When running lldb-dotest -p SomeTest, this exception was raised:

raise Exception("Don't know how to build binary")

@felipepiovezan hit the same exception when running ninja check-lldb.

This change is a fix to the problem.

@llvmbot
Copy link
Member

llvmbot commented Jul 30, 2025

@llvm/pr-subscribers-lldb

Author: Dave Lee (kastiglione)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/151373.diff

1 Files Affected:

  • (modified) lldb/packages/Python/lldbsuite/test/builders/init.py (+1-1)
diff --git a/lldb/packages/Python/lldbsuite/test/builders/__init__.py b/lldb/packages/Python/lldbsuite/test/builders/__init__.py
index 9dd82cb3ebccf..e3b789cfa775c 100644
--- a/lldb/packages/Python/lldbsuite/test/builders/__init__.py
+++ b/lldb/packages/Python/lldbsuite/test/builders/__init__.py
@@ -8,7 +8,7 @@
 
 def get_builder(platform):
     """Returns a Builder instance for the given platform."""
-    if platform == "darwin":
+    if platform in ("darwin", "macosx"):
         from .darwin import BuilderDarwin
 
         return BuilderDarwin()

@kastiglione
Copy link
Contributor Author

kastiglione commented Jul 30, 2025

I am not sure what has changed to cause this to be needed.

@bulbazord
Copy link
Member

What's the symptom/failure that requires this change? I'm also surprised we don't have a function that takes a platform and tells you if it's a "Darwin" platform.

@kastiglione
Copy link
Contributor Author

kastiglione commented Jul 30, 2025

@bulbazord this fails when running build/bin/lldb-dotest -p SomeTest.

@kastiglione kastiglione changed the title [lldb] Fix lldb-dotest on macOS [lldb] Fix testing on macOS Jul 30, 2025
@kastiglione
Copy link
Contributor Author

fixed by #151262

@kastiglione kastiglione deleted the lldb-Fix-lldb-dotest-on-macOS branch July 30, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants