forked from OSchip/llvm-project
[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:
parent
5f2e8f5796
commit
c471359497
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue