From d3abf64bd219325db543001bb250d9a7755b43fb Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 3 Apr 2015 12:06:23 +0800 Subject: [PATCH] Strip generate binaries --- common.gypi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common.gypi b/common.gypi index f7c0b327ba7..7e57301316d 100644 --- a/common.gypi +++ b/common.gypi @@ -154,11 +154,16 @@ ], }], ['_type in ["executable", "shared_library"]', { - # On some machines setting CLANG_CXX_LIBRARY doesn't work for linker. 'xcode_settings': { + # On some machines setting CLANG_CXX_LIBRARY doesn't work for linker. 'OTHER_LDFLAGS': [ '-stdlib=libc++' ], + # Generates symbols and strip the binary. + 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', + 'DEPLOYMENT_POSTPROCESSING': 'YES', + 'STRIP_INSTALLED_PRODUCT': 'YES', + 'STRIPFLAGS': '-x', }, }], ], @@ -198,9 +203,6 @@ ], }, }, - 'xcode_settings': { - 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', - }, }, 'conditions': [ # Settings to compile with clang under OS X.