]> khamidou — GitHub mirrors - electron.git/commitdiff
Build with -g on Linux.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 3 Mar 2014 04:35:52 +0000 (12:35 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 3 Mar 2014 04:35:52 +0000 (12:35 +0800)
common.gypi

index 984c1dd86edc8f901776b9ac9ba7682b651d8283..116dce1578f210a92c2fc04f60ef48aee33f5123 100644 (file)
         },
       },
     }],  # 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',
+                ],
+              }],
+            ],
+          }],
+        ],
+      },
+    }],
   ],
 }