From 8216f1bc7c6b4edaa4f2f9de1efa0fc6d1fe887c Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 9 Jan 2015 05:38:13 -0800 Subject: [PATCH] Add ASAN and TSAN support for Mac BUG=none LOG=n R=machenbach@chromium.org,glider@chromium.org Review URL: https://codereview.chromium.org/838383005 Cr-Commit-Position: refs/heads/master@{#26013} --- build/mac/asan.gyp | 33 +++++++++++++++++++++++++++++++++ build/standalone.gypi | 29 ++++++++++++++++++++++++++--- 2 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 build/mac/asan.gyp diff --git a/build/mac/asan.gyp b/build/mac/asan.gyp new file mode 100644 index 0000000..a5821e3 --- /dev/null +++ b/build/mac/asan.gyp @@ -0,0 +1,33 @@ +# Copyright 2015 the V8 project 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', + 'toolsets': ['target', 'host'], + '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', + 'asan_osx_dynamic': + '<(asan_rtl_mask_path)/libclang_rt.asan_osx_dynamic.dylib', + 'asan_iossim_dynamic': + '<(asan_rtl_mask_path)/libclang_rt.asan_iossim_dynamic.dylib', + }, + 'copies': [ + { + 'destination': '<(PRODUCT_DIR)', + 'files': [ + '