Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index c48fc714f33d1b8301e73e39a9ba2a7622757185..71d96946c23dc04ce226b9944096b741a770b2dc 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -2141,8 +2141,9 @@ |
'clang%': 1, |
}], |
['asan==1 and OS=="mac"', { |
- # Strip and produce the .dSYM files. |
- 'mac_strip_release': 1, |
+ # TODO(glider): we do not strip ASan binaries until the dynamic ASan |
+ # runtime is fully adopted. See http://crbug.com/242503. |
+ 'mac_strip_release': 0, |
}], |
['tsan==1', { |
'use_custom_libcxx%': 1, |
@@ -4985,6 +4986,16 @@ |
], |
}, |
], |
+ 'conditions': [ |
+ ['asan==1', { |
+ 'variables': { |
+ 'asan_saves_file': 'asan.saves', |
+ }, |
+ 'xcode_settings': { |
+ 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)', |
+ }, |
+ }], |
+ ], |
'target_conditions': [ |
['mac_pie==1 and release_valgrind_build==0', { |
# Turn on position-independence (ASLR) for executables. When |
@@ -5024,6 +5035,13 @@ |
# additional flags are added with STRIPFLAGS. |
'STRIPFLAGS': '-x', |
}], # _type=="shared_library" or _type=="loadable_module" |
+ ['_type=="executable"', { |
+ 'conditions': [ |
+ ['asan==1', { |
+ 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)', |
+ }] |
+ ], |
+ }], # _type=="executable" and asan==1 |
], # target_conditions |
}, # xcode_settings |
}, # configuration "Release" |