mac: Improve how we find .dSYM bundle
This commit is contained in:
parent
5f2fe27b65
commit
8500a53c23
1 changed files with 4 additions and 2 deletions
|
@ -61,8 +61,10 @@ def FindBundlePart(full_path):
|
||||||
|
|
||||||
def GetDSYMBundle(options, binary_path):
|
def GetDSYMBundle(options, binary_path):
|
||||||
"""Finds the .dSYM bundle to the binary."""
|
"""Finds the .dSYM bundle to the binary."""
|
||||||
if not binary_path.endswith(' Framework'):
|
if os.path.isabs(binary_path):
|
||||||
return binary_path
|
dsym_path = binary_path + '.dSYM'
|
||||||
|
if os.path.exists(dsym_path):
|
||||||
|
return dsym_path
|
||||||
|
|
||||||
filename = FindBundlePart(binary_path)
|
filename = FindBundlePart(binary_path)
|
||||||
search_dirs = [options.build_dir, options.libchromiumcontent_dir]
|
search_dirs = [options.build_dir, options.libchromiumcontent_dir]
|
||||||
|
|
Loading…
Reference in a new issue