summaryrefslogtreecommitdiffstats
path: root/build/mac/asan.gyp
diff options
context:
space:
mode:
authorglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-12 11:56:31 +0000
committerglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-12 11:56:31 +0000
commit5ec8c9689563cf8662a80175adce3c0a9bcf8e88 (patch)
treea817a50b68744549368323f00d70da0953deac66 /build/mac/asan.gyp
parent8d36e89241662d4cd05adfdc54d32930de36dd5c (diff)
downloadchromium_src-5ec8c9689563cf8662a80175adce3c0a9bcf8e88.zip
chromium_src-5ec8c9689563cf8662a80175adce3c0a9bcf8e88.tar.gz
chromium_src-5ec8c9689563cf8662a80175adce3c0a9bcf8e88.tar.bz2
Re-land https://codereview.chromium.org/11642018/: Add a postbuild action for executables built with ASan on Mac OS.
The action will copy the ASan dynamic runtime to the output dir and into every bundled executable being built. Unlike the previous change, this one does not touch build/all.gyp, since our target doesn't need to be built when building 'All'. BUG=170629 TBR=thakis,mark Review URL: https://codereview.chromium.org/12685006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac/asan.gyp')
-rw-r--r--build/mac/asan.gyp32
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..73e8641
--- /dev/null
+++ b/build/mac/asan.gyp
@@ -0,0 +1,32 @@
+# Copyright (c) 2013 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))',
+ ],
+ },
+ ],
+ }],
+ ],
+ },
+ ],
+}