Browse Source

Build with -g on Linux.

Cheng Zhao 11 years ago
parent
commit
de21a164ea
1 changed files with 19 additions and 0 deletions
  1. 19 0
      common.gypi

+ 19 - 0
common.gypi

@@ -244,5 +244,24 @@
         },
       },
     }],  # OS=="mac"
+    # The breakpad on Linux needs the binary to be built with -g to generate
+    # unmangled symbols.
+    ['OS=="linux"', {
+      'target_defaults': {
+        'cflags': [ '-g' ],
+        'conditions': [
+          ['target_arch=="ia32"', {
+            'target_conditions': [
+              ['_toolset=="target"', {
+                'ldflags': [
+                  # Workaround for linker OOM.
+                  '-Wl,--no-keep-memory',
+                ],
+              }],
+            ],
+          }],
+        ],
+      },
+    }],
   ],
 }