]> khamidou — GitHub mirrors - electron.git/commitdiff
mac: Improve how we find .dSYM bundle
authorCheng Zhao <zcbenz@gmail.com>
Fri, 10 Apr 2015 05:24:05 +0000 (13:24 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 10 Apr 2015 05:24:05 +0000 (13:24 +0800)
tools/posix/generate_breakpad_symbols.py

index 88cae88fe8ce4811a2959852d44c2257c0255594..d3f98d4d794f53a9ce53efd809892bba6aeacc4a 100755 (executable)
@@ -61,8 +61,10 @@ def FindBundlePart(full_path):
 
 def GetDSYMBundle(options, binary_path):
   """Finds the .dSYM bundle to the binary."""
-  if not binary_path.endswith(' Framework'):
-    return binary_path
+  if os.path.isabs(binary_path):
+    dsym_path = binary_path + '.dSYM'
+    if os.path.exists(dsym_path):
+      return dsym_path
 
   filename = FindBundlePart(binary_path)
   search_dirs = [options.build_dir, options.libchromiumcontent_dir]