diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-11 15:30:18 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-11 15:30:18 +0000 |
commit | b9ff654d9d0e16a0e74ed7b164dedd6401e342c8 (patch) | |
tree | 46067d7b226b0d775145bcb00f5c63950bf206d7 /build/mac/asan.gyp | |
parent | 77070f6d755000e181f63ff2febee5b220737c59 (diff) | |
download | chromium_src-b9ff654d9d0e16a0e74ed7b164dedd6401e342c8.zip chromium_src-b9ff654d9d0e16a0e74ed7b164dedd6401e342c8.tar.gz chromium_src-b9ff654d9d0e16a0e74ed7b164dedd6401e342c8.tar.bz2 |
Add a postbuild action for executables built with ASan on Mac OS.
The action will copy the ASan dynamic runtime to the same dir where
the executable is.
BUG=170629
Review URL: https://codereview.chromium.org/11642018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac/asan.gyp')
-rw-r--r-- | build/mac/asan.gyp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/build/mac/asan.gyp b/build/mac/asan.gyp new file mode 100644 index 0000000..4a0cef9 --- /dev/null +++ b/build/mac/asan.gyp @@ -0,0 +1,32 @@ +# Copyright (c) 2012 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'targets': [ + { + 'target_name': 'asan_dynamic_runtime', + 'type': 'none', + 'variables': { + # Every target is going to depend on asan_dynamic_runtime, so allow + # this one to depend on itself. + 'prune_self_dependency': 1, + # Path is relative to this GYP file. + 'asan_rtl_mask_path': + '../../third_party/llvm-build/Release+Asserts/lib/clang/*/lib/darwin/libclang_rt.asan_osx_dynamic.dylib', + }, + 'conditions': [ + ['OS=="mac"', { + 'copies': [ + { + 'destination': '<(PRODUCT_DIR)', + 'files': [ + '<!(/bin/ls <(asan_rtl_mask_path))', + ], + }, + ], + }], + ], + }, + ], +} |