Skip to content

Commit

Permalink
[lldb] Fix TypeError: argument of type 'NoneType' is not iterable
Browse files Browse the repository at this point in the history
Check if we have an apple_sdk before checking if it contains "internal".
  • Loading branch information
JDevlieghere committed Nov 30, 2021
1 parent 5f2e8f5 commit c471359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/packages/Python/lldbsuite/test/builders/darwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c471359

Please sign in to comment.