[Lldb-commits] [lldb] c471359 - [lldb] Fix TypeError: argument of type 'NoneType' is not iterable

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 30 12:42:37 PST 2021


Author: Jonas Devlieghere
Date: 2021-11-30T12:41:45-08:00
New Revision: c47135949779904542ee1e6d5486609ebf0da1b5

URL: https://github.com/llvm/llvm-project/commit/c47135949779904542ee1e6d5486609ebf0da1b5
DIFF: https://github.com/llvm/llvm-project/commit/c47135949779904542ee1e6d5486609ebf0da1b5.diff

LOG: [lldb] Fix TypeError: argument of type 'NoneType' is not iterable

Check if we have an apple_sdk before checking if it contains "internal".

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/builders/darwin.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/builders/darwin.py b/lldb/packages/Python/lldbsuite/test/builders/darwin.py
index 33a925c2d73a..fd97ef88d927 100644
--- a/lldb/packages/Python/lldbsuite/test/builders/darwin.py
+++ b/lldb/packages/Python/lldbsuite/test/builders/darwin.py
@@ -79,7 +79,7 @@ def getExtraMakeArgs(self):
         if configuration.dsymutil:
             args['DSYMUTIL'] = configuration.dsymutil
 
-        if 'internal' in configuration.apple_sdk:
+        if configuration.apple_sdk and 'internal' in configuration.apple_sdk:
             sdk_root = lldbutil.get_xcode_sdk_root(configuration.apple_sdk)
             if sdk_root:
                 private_frameworks = os.path.join(sdk_root, 'System',


        


More information about the lldb-commits mailing list