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

Check if we have an apple_sdk before checking if it contains "internal".
This commit is contained in:
Jonas Devlieghere 2021-11-30 12:41:45 -08:00
parent 5f2e8f5796
commit c471359497
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class BuilderDarwin(Builder):
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',