Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: build/common.gypi

Issue 11642018: Add a postbuild action for executables built with ASan on Mac OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/mac/copy_asan_runtime_dylib.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
===================================================================
--- build/common.gypi (revision 173733)
+++ build/common.gypi (working copy)
@@ -3421,6 +3421,31 @@
'xcode_settings': {
'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)',
},
+ 'postbuilds': [
+ {
+ # For executables built with ASan, copies the runtime lib
+ # (libclang_rt.asan_osx_dynamic.dylib) on which they depend
+ # from the compiler installation path to the build dir and
+ # fixes the dylib's install name in the binary to be
+ # relative to @executable_path. This is needed if the
+ # executables are copied to a different machine (the ASan
+ # runtime library must be copied in this case as well).
+ 'variables': {
+ # Define change_mach_o_flags in a variable ending in _path
Mark Mentovai 2012/12/19 13:53:38 If you’re using this, fix the comment.
+ # so that GYP understands it's a path and performs proper
+ # relativization during dict merging.
+ 'copy_asan_runtime_dylib_path':
+ 'mac/copy_asan_runtime_dylib.sh',
+ 'copy_asan_runtime_dylib_options%': [
+ ],
+ },
+ 'postbuild_name': 'Copy ASan runtime dylib',
+ 'action': [
+ '<(copy_asan_runtime_dylib_path)',
+ '>@(copy_asan_runtime_dylib_options)',
+ ],
+ },
+ ],
}],
],
'target_conditions': [
« no previous file with comments | « no previous file | build/mac/copy_asan_runtime_dylib.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698