[Lldb-commits] [lldb] [lldb][test] Improve error for C++ compiler detection and improve docs (PR #214199)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 5 04:21:10 PDT 2026


================
@@ -149,10 +149,18 @@ def getToolchainSpec(self, compiler):
             "xcrun clang": "xcrun clang++",
         }
         # Determine the C++ compiler based on the given compiler path/command.
-        cxx_type = cxx_types.get(compiler)
-        if cxx_type is None:
+        try:
----------------
DavidSpickett wrote:

I changed this to try except so we do not rely on a None implictly being passed on, which happened with the get( calls.

https://github.com/llvm/llvm-project/pull/214199


More information about the lldb-commits mailing list